Documentation ¶
Index ¶
- func NewDebugServer(cfg *config.Server, logger log.Logger) *kratosHttp.Server
- func NewGRPCServer(cfg *config.Server, registryServer *RegistryServer, ...) *grpc.Server
- func NewHTTPServer(cfg *config.Server, registryServer *RegistryServer, ...) *kratosHttp.Server
- type MetadataServer
- type RegistryServer
- func (r *RegistryServer) DeleteModule(ctx context.Context, request *v1.DeleteModuleRequest) (*v1.DeleteModuleResponse, error)
- func (r *RegistryServer) DeleteModuleTag(ctx context.Context, request *v1.DeleteModuleTagRequest) (*v1.DeleteModuleTagResponse, error)
- func (r *RegistryServer) GetModule(ctx context.Context, request *v1.GetModuleRequest) (*v1.Module, error)
- func (r *RegistryServer) GetModuleDependencies(ctx context.Context, request *v1.GetModuleDependenciesRequest) (*v1.GetModuleDependenciesResponse, error)
- func (r *RegistryServer) ListModules(ctx context.Context, request *v1.ListModulesRequest) (*v1.ListModulesResponse, error)
- func (r *RegistryServer) PullModule(ctx context.Context, request *v1.PullModuleRequest) (*v1.PullModuleResponse, error)
- func (r *RegistryServer) PushModule(ctx context.Context, request *v1.PushModuleRequest) (*v1.Module, error)
- func (r *RegistryServer) RegisterModule(ctx context.Context, request *v1.RegisterModuleRequest) (*v1.Module, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDebugServer ¶ added in v0.3.0
func NewGRPCServer ¶ added in v0.3.0
func NewGRPCServer(cfg *config.Server, registryServer *RegistryServer, metadataServer *MetadataServer, logger log.Logger, ) *grpc.Server
NewGRPCServer new a gRPC server.
func NewHTTPServer ¶ added in v0.3.0
func NewHTTPServer(cfg *config.Server, registryServer *RegistryServer, metadataServer *MetadataServer, logger log.Logger, ) *kratosHttp.Server
NewHTTPServer new a HTTP server.
Types ¶
type MetadataServer ¶ added in v0.4.0
type MetadataServer struct { v1.UnimplementedMetadataServiceServer // contains filtered or unexported fields }
func NewMetadataServer ¶ added in v0.4.0
func NewMetadataServer(registryRepository data.RegistryRepository, metadataRepository data.MetadataRepository, logger log.Logger) *MetadataServer
func (MetadataServer) GetMetadata ¶ added in v0.4.0
func (m MetadataServer) GetMetadata(ctx context.Context, request *v1.GetMetadataRequest) (*v1.GetMetadataResponse, error)
type RegistryServer ¶
type RegistryServer struct { v1.UnimplementedRegistryServer // contains filtered or unexported fields }
func NewRegistryServer ¶
func NewRegistryServer(registryRepository data.RegistryRepository, metadataRepository data.MetadataRepository, logger log.Logger) *RegistryServer
func (*RegistryServer) DeleteModule ¶
func (r *RegistryServer) DeleteModule(ctx context.Context, request *v1.DeleteModuleRequest) (*v1.DeleteModuleResponse, error)
func (*RegistryServer) DeleteModuleTag ¶
func (r *RegistryServer) DeleteModuleTag(ctx context.Context, request *v1.DeleteModuleTagRequest) (*v1.DeleteModuleTagResponse, error)
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 (r *RegistryServer) GetModuleDependencies(ctx context.Context, request *v1.GetModuleDependenciesRequest) (*v1.GetModuleDependenciesResponse, error)
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)
Click to show internal directories.
Click to hide internal directories.