server

package
v0.0.0-...-9879b21 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleServer

type ArticleServer struct {
	pb.UnimplementedArticleServiceServer
	// contains filtered or unexported fields
}

func MakeArticleServer

func MakeArticleServer(d Dependencies) ArticleServer

func (ArticleServer) AuthMatcher

func (ArticleServer) AuthMatcher() selector.Matcher

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

func (ArticleServer) Create

func (ArticleServer) Delete

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

func (ArticleServer) Get

func (ArticleServer) GetStream

func (ArticleServer) Update

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

func (ArticleServer) ValidateRequestInterceptor

func (s ArticleServer) ValidateRequestInterceptor() grpc.UnaryServerInterceptor

type Dependencies

type Dependencies struct {
	Services   Services
	Query      storage.Getter
	Cmd        storage.Writer
	Dispatcher *dispatcher.Dispatcher
	Broker     event.Broker
	Parser     tokens.Parser
	Tracer     trace.Tracer
}

type Services

type Services struct {
	User userPb.UserServiceClient
	Auth authPb.AuthServiceClient
}

Jump to

Keyboard shortcuts

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