Documentation
¶
Index ¶
Constants ¶
View Source
const ( GuardContextKey = "guard" RedisContextKey = "redis" )
Variables ¶
This section is empty.
Functions ¶
func WithGuard ¶ added in v0.0.4
func WithGuard() grpc.UnaryServerInterceptor
func WithRedis ¶ added in v0.0.4
func WithRedis() grpc.UnaryServerInterceptor
Types ¶
type GRPCService ¶ added in v0.0.4
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New( port int, unary []grpc.UnaryServerInterceptor, stream []grpc.StreamServerInterceptor, ) *Server
func (*Server) WithServices ¶
func (s *Server) WithServices(services ...GRPCService) *Server
Click to show internal directories.
Click to hide internal directories.