Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTokenNotFound = errors.New("token not found") ErrEmptyRequest = errors.New("empty request") ErrNotFound = errors.New("user not found") ErrWrongCreds = errors.New("bad users creds") )
View Source
var StreamInterceptor = func(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error { return handler(srv, &Stream{ss}) }
View Source
var UnaryInterceptor = func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error) { ctx = context.WithValue(ctx, "REQID", "someID") return handler(ctx, req) }
Functions ¶
func New ¶
func New() pb.SessionServer
Types ¶
type ConnGetter ¶
Click to show internal directories.
Click to hide internal directories.