server

package
v0.4.0-wip.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDebugServer added in v0.3.0

func NewDebugServer(cfg *config.Server, logger log.Logger) *kratosHttp.Server

func NewGRPCServer added in v0.3.0

func NewGRPCServer(cfg *config.Server, registryServer *RegistryServer, logger log.Logger) *grpc.Server

NewGRPCServer new a gRPC server.

func NewHTTPServer added in v0.3.0

func NewHTTPServer(cfg *config.Server, registryServer *RegistryServer, logger log.Logger) *kratosHttp.Server

NewHTTPServer new a HTTP server.

Types

type RegistryServer

type RegistryServer struct {
	v1.UnimplementedRegistryServer
	// contains filtered or unexported fields
}

func NewRegistryServer

func NewRegistryServer(registryRepository data.RegistryRepository, logger log.Logger) *RegistryServer

func (*RegistryServer) DeleteModule

func (r *RegistryServer) DeleteModule(ctx context.Context, request *v1.DeleteModuleRequest) (*v1.DeleteModuleResponse, error)

func (*RegistryServer) DeleteModuleTag

func (*RegistryServer) GetModule

func (r *RegistryServer) GetModule(ctx context.Context, request *v1.GetModuleRequest) (*v1.Module, error)

func (*RegistryServer) GetModuleDependencies added in v0.2.0

func (*RegistryServer) ListModules

func (r *RegistryServer) ListModules(ctx context.Context, request *v1.ListModulesRequest) (*v1.ListModulesResponse, error)

func (*RegistryServer) PullModule

func (r *RegistryServer) PullModule(ctx context.Context, request *v1.PullModuleRequest) (*v1.PullModuleResponse, error)

func (*RegistryServer) PushModule

func (r *RegistryServer) PushModule(ctx context.Context, request *v1.PushModuleRequest) (*v1.Module, error)

func (*RegistryServer) RegisterModule

func (r *RegistryServer) RegisterModule(ctx context.Context, request *v1.RegisterModuleRequest) (*v1.Module, error)

Jump to

Keyboard shortcuts

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