cvzservice

package
v0.0.0-...-df32303 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cvzservice provides a service registrar.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCServicer

type GRPCServicer interface {
	Register(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error
}

GRPCServicer is an interface for registering a gRPC service.

type IServiceServer

type IServiceServer interface {
	AsServer() *grpc.Server
	Run() error
}

IServiceServer is a service registrar.

type ServiceServer

type ServiceServer struct {
	// contains filtered or unexported fields
}

ServiceServer is a gRPC server that registers services.

func New

func New(opts ...grpc.ServerOption) *ServiceServer

New returns a new service registrar.

func NewDefault

func NewDefault() *ServiceServer

NewDefault returns a new service registrar with default options.

func (*ServiceServer) AsServer

func (s *ServiceServer) AsServer() *grpc.Server

AsServer returns the underlying gRPC server.

func (*ServiceServer) Run

func (s *ServiceServer) Run() error

Run starts the service registrar.

Jump to

Keyboard shortcuts

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