grpc

package
v0.0.0-...-c0f29ca Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideRemoteSetup

func ProvideRemoteSetup(handler *Handler) func(server *gRPC.Server)

Types

type Handler

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

func NewHandler

func NewHandler(service service.BetaService, auth service.AuthService, config env.CommonConfig) *Handler

func (*Handler) AddBetas

func (h *Handler) AddBetas(ctx context.Context, input *proto.BetaInput) (*proto.BetaResponse, error)

func (*Handler) CountBetas

func (h *Handler) CountBetas(ctx context.Context, filter *proto.BetaFilter) (r *proto.BetaResponse, err error)

func (*Handler) EditBetas

func (h *Handler) EditBetas(ctx context.Context, input *proto.BetaInput) (*proto.BetaResponse, error)

func (*Handler) GetBetas

func (h *Handler) GetBetas(ctx context.Context, filter *proto.BetaFilter) (r *proto.BetaResponse, err error)

func (*Handler) ProvideAccessRoles

func (h *Handler) ProvideAccessRoles() map[string][]model.UserRole

func (*Handler) ProvideAuthKey

func (h *Handler) ProvideAuthKey() *rsa.PublicKey

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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