server

package
v0.0.0-...-287be54 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 21 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) AuthFunc

func (server ArticleServer) AuthFunc(ctx context.Context) (context.Context, error)

func (ArticleServer) Close

func (s ArticleServer) Close() error

func (ArticleServer) Create

func (ArticleServer) Delete

func (ArticleServer) Get

func (ArticleServer) GetStream

func (ArticleServer) Update

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
	Validator  tokens.Validator
	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