This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generated by go-doudou v2.0.3. | |
* Don't edit! | |
* | |
* Version No.: v20221123 | |
*/ | |
syntax = "proto3"; | |
package go_stats; | |
option go_package = "go-doudou-tutorials/go-stats/transport/grpc"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ go-stats git:(master) ✗ go run cmd/main.go | |
2022/11/23 11:07:45 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined | |
_ _ | |
| | | | | |
__ _ ___ ______ __| | ___ _ _ __| | ___ _ _ | |
/ _` | / _ \ |______| / _` | / _ \ | | | | / _` | / _ \ | | | | | |
| (_| || (_) | | (_| || (_) || |_| || (_| || (_) || |_| | | |
\__, | \___/ \__,_| \___/ \__,_| \__,_| \___/ \__,_| | |
__/ | | |
|___/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generated by go-doudou v2.0.3. | |
* You can edit it as your need. | |
*/ | |
package vo | |
//go:generate go-doudou name --file $GOFILE | |
// request vo | |
type PercentageReqVo struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generated by go-doudou v2.0.3. | |
* You can edit it as your need. | |
*/ | |
package service | |
import ( | |
"context" | |
"go-doudou-tutorials/go-stats/vo" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generated by go-doudou v2.0.3. | |
* You can edit it as your need. | |
*/ | |
package service | |
import ( | |
"context" | |
"go-doudou-tutorials/go-stats/vo" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generated by go-doudou v2.0.3. | |
* You can edit it as your need. | |
*/ | |
package service | |
import ( | |
"context" | |
"go-doudou-tutorials/go-stats/vo" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
# Using ElasticSearch as a storage for traces and logs | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.7.1 | |
networks: | |
- elastic-jaeger | |
ports: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type Aaa struct { | |
a string | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package hash | |
import ( | |
"crypto/md5" | |
"encoding/base64" | |
"reflect" | |
"unsafe" | |
) | |
// Hash returns md5 hash taken from any object |