Documentation
¶
Index ¶
- Constants
- type Server
- func (s *Server) Addr() string
- func (s *Server) Close(ctx context.Context) error
- func (s *Server) Init()
- func (s *Server) Name() string
- func (s *Server) Options() (opts []grpc.ServerOption)
- func (s *Server) PrettyAddr() string
- func (s *Server) Priority() int
- func (s *Server) Server() *grpc.Server
- func (s *Server) Start(ctx context.Context)
- func (s *Server) TokenAuth(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
Constants ¶
View Source
const (
AppName = config.GrpcName
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Enabled bool `json:"enabled" yaml:"enabled"` Host string `json:"host" yaml:"host"` Port int `json:"port" yaml:"port"` Token string `json:"token" yaml:"token"` Otlp bool `json:"otlp" yaml:"otlp"` ioc.ObjectImpl // contains filtered or unexported fields }
func (*Server) Options ¶
func (s *Server) Options() (opts []grpc.ServerOption)
func (*Server) PrettyAddr ¶
func (*Server) TokenAuth ¶
func (s *Server) TokenAuth(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
Click to show internal directories.
Click to hide internal directories.