authsvc

package
v0.0.0-...-839fe76 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthSvc

type AuthSvc struct {
}

AuthSvc ecapsulates dependencies and data required to implement the pb.AuthServer interface.

func New

func New() (*AuthSvc, error)

New returns a pointer to an AuthSvc instance or an error.

func (*AuthSvc) AddAuth

func (s *AuthSvc) AddAuth(ctx context.Context, req *pb.AddAuthReq) (*pb.AuthResp, error)

AddAuth implements part of the pb.AuthServer interface.

func (*AuthSvc) AddVoucher

func (s *AuthSvc) AddVoucher(ctx context.Context, req *pb.AddVoucherReq) (*pb.AddVoucherResp, error)

AddVoucher implements part of the pb.AuthServer interface.

func (*AuthSvc) RegisterWithGRPCServer

func (s *AuthSvc) RegisterWithGRPCServer(g *grpc.Server) error

RegisterWithGRPCServer implements the grpcsrv.Registerable interface.

func (*AuthSvc) RmvAuth

func (s *AuthSvc) RmvAuth(ctx context.Context, req *pb.RmvAuthReq) (*pb.RmvAuthResp, error)

RmvAuth implements part of the pb.AuthServer interface.

Jump to

Keyboard shortcuts

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