grpcserver

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAuthStatus = status.Error(invalid, "invalid api key")

Functions

func New

func New(reader repository.Reader, writer repository.Writer, logger *logrus.Logger, opts ...Option) *grpc.Server

func Recovery

func Recovery(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (_ interface{}, err error)

func WithSecure

func WithSecure(conf *config)

Types

type ApiKeyManagements added in v0.0.4

type ApiKeyManagements struct {
	// contains filtered or unexported fields
}

func (*ApiKeyManagements) Exists added in v0.0.4

func (apiKey *ApiKeyManagements) Exists(value string) bool

type Option

type Option func(*config)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL