services

package
v0.0.0-...-d7e398f Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGRPCFlags

func RegisterGRPCFlags(f []cli.Flag) []cli.Flag

Types

type GRPC

type GRPC struct {
	pb.UnimplementedClaimsProviderServer
	// contains filtered or unexported fields
}

func NewGRPC

func NewGRPC(c *cli.Context, s *Store) *GRPC

NewGRPC returns a new GRPC server

func (*GRPC) Close

func (s *GRPC) Close() error

Close stops the gRPC server and releases the listener

func (*GRPC) Get

func (s *GRPC) Get(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error)

Get gets claims for a user

func (*GRPC) Serve

func (s *GRPC) Serve() error

Serve starts the gRPC server

type Store

type Store struct {
	lazymap.LazyMap
	// contains filtered or unexported fields
}

func NewStore

func NewStore(pg *cs.PG) *Store

func (*Store) Get

func (s *Store) Get(email string) (claims *models.Claims, err error)

Jump to

Keyboard shortcuts

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