Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call interface { log.Recorder // session values GetUserId() string GetRoleId() string // sdk clients GetDBV1() dbapi_v1.DBClient GetGWV1() gwapi_v1.GatewayClient // push data to client OnReply(OnReplyFunc) PushTo(ctx context.Context, roleId string, msg proto.Message) error }
Call track every rpc call (in/out) provide session informations(userId, roleId) provide access api to libra services
type Config ¶
type Config struct { // local service address Bind string // log configuration Log *zap.Config // api endpoints DBV1 *Endpoint GWV1 *Endpoint }
export Config just for reference
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GRPCServer ¶
SomeService.RegisterSomeServer(s.GRPC(), SomeImplement)
Click to show internal directories.
Click to hide internal directories.