Documentation ¶
Index ¶
- func GetUsernameBySid(sid string) (string, error)
- func NewGrpcClientOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transportgrpc.ClientOption
- func NewGrpcServerOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transportgrpc.ServerOption
- func NewHttpServerOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transporthttp.ServerOption
- func NewLogger(servicename string) log.Logger
- func NewZipkinTracer(serviceName, hostPort, zipkinhttpurl string, logger log.Logger) (*zipkin.Tracer, error)
- func NoDecodeRequestFunc(ctx context.Context, i interface{}) (request interface{}, err error)
- func NoDecodeResponseFunc(ctx context.Context, i interface{}) (response interface{}, err error)
- func NoEncodeRequestFunc(ctx context.Context, i interface{}) (request interface{}, err error)
- func NoEncodeResponseFunc(ctx context.Context, i interface{}) (response interface{}, err error)
- type AccountTable
- type UserTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUsernameBySid ¶
func NewGrpcClientOptions ¶
func NewGrpcClientOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transportgrpc.ClientOption
func NewGrpcServerOptions ¶
func NewGrpcServerOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transportgrpc.ServerOption
func NewHttpServerOptions ¶
func NewHttpServerOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transporthttp.ServerOption
func NewZipkinTracer ¶
func NoDecodeRequestFunc ¶
func NoDecodeResponseFunc ¶
func NoEncodeRequestFunc ¶
func NoEncodeResponseFunc ¶
Types ¶
type AccountTable ¶
type AccountTable struct {
Balance int64
}
func GetAccountByUsername ¶
func GetAccountByUsername(username string) (AccountTable, error)
Click to show internal directories.
Click to hide internal directories.