server

package
v0.0.0-...-8a338e8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	VerifyClientCert bool
}

type Dependencies

type Dependencies struct {
	Storage storage.Storage
	Broker  event.Broker
	Logger  logging.Logger
	Tracer  trace.Tracer
	Config  Config
}

type UserServer

type UserServer struct {
	pb.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

func MakeUserServer

func MakeUserServer(d Dependencies) UserServer

func (UserServer) AuthMatcher

func (UserServer) AuthMatcher() selector.Matcher

AuthMatcher returns a callback used to determine whether current gRPC path should be protected by auth middleware.

func (UserServer) Create

func (s UserServer) Create(ctx context.Context, req *pb.CreateUserRequest) (_ *pb.CreateUserResponse, err error)

func (UserServer) Delete

func (s UserServer) Delete(ctx context.Context, req *pb.DeleteUserRequest) (_ *emptypb.Empty, err error)

func (UserServer) Get

func (s UserServer) Get(ctx context.Context, req *pb.GetUserRequest) (_ *pb.GetUserResponse, err error)

func (UserServer) GetSecret

func (UserServer) GetStream

func (s UserServer) GetStream(req *pb.GetUsersRequest, stream pb.UserService_GetStreamServer) (err error)

func (UserServer) Update

func (s UserServer) Update(ctx context.Context, req *pb.UpdateUserRequest) (_ *emptypb.Empty, err error)

func (UserServer) ValidateRequestInterceptor

func (s UserServer) ValidateRequestInterceptor() grpc.UnaryServerInterceptor

Jump to

Keyboard shortcuts

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