tools

package
v0.0.0-...-1016c01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Difference

func Difference(a, b []int64) (diff []int64)

func EnsureValidToken

func EnsureValidToken(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

func GrpcError

func GrpcError(code codes.Code, msg string) error

func IntArrayToString

func IntArrayToString(arr []int64) string

func ParseConfig

func ParseConfig(fileName string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL