Documentation ¶
Index ¶
- func Difference(a, b []int64) (diff []int64)
- func EnsureValidToken(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func GrpcError(code codes.Code, msg string) error
- func IntArrayToString(arr []int64) string
- func ParseConfig(fileName string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶
func EnsureValidToken ¶
func EnsureValidToken(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
func IntArrayToString ¶
func ParseConfig ¶
Types ¶
type Config ¶
type Config struct { RedisUrl string `json:"redis_url"` RedisPoolSize int `json:"redis_pool_size"` PostgresUrl string `json:"postgres_url"` NatsUrl string `json:"nats_url"` NatsUser string `json:"nats_user"` NatsPassword string `json:"nats_password"` AuthPort int `json:"auth_port"` GatewayPort int `json:"gateway_port"` UsersPort int `json:"users_port"` TweetsPort int `json:"tweets_port"` AuthServiceHost string `json:"auth_service_host"` UsersServiceHost string `json:"users_service_host"` TweetsServiceHost string `json:"tweets_service_host"` }
var Conf Config
Click to show internal directories.
Click to hide internal directories.