Documentation ¶
Index ¶
- Constants
- func BuildServerOptions(config *grpc_server_config.Config)
- type GrpcServer
- func (c *GrpcServer) Address() string
- func (c *GrpcServer) GracefulStop(ctx context.Context) error
- func (c *GrpcServer) Init() error
- func (c *GrpcServer) IsBufNet() bool
- func (c *GrpcServer) Listener() net.Listener
- func (c *GrpcServer) Name() string
- func (c *GrpcServer) PackageName() string
- func (c *GrpcServer) Start() error
- func (c *GrpcServer) Stop() error
Constants ¶
View Source
const (
// PackageName 包名
PackageName = "server.fgrpc"
)
Variables ¶
This section is empty.
Functions ¶
func BuildServerOptions ¶
func BuildServerOptions(config *grpc_server_config.Config)
Types ¶
type GrpcServer ¶
Component ...
func NewGrpcServer ¶
func NewGrpcServer(config *grpc_server_config.Config) *GrpcServer
func (*GrpcServer) GracefulStop ¶
func (c *GrpcServer) GracefulStop(ctx context.Context) error
GracefulStop implements server.Component interface it will stop echo server gracefully
func (*GrpcServer) Start ¶
func (c *GrpcServer) Start() error
Start implements server.Component interface.
func (*GrpcServer) Stop ¶
func (c *GrpcServer) Stop() error
Stop implements server.Component interface it will terminate echo server immediately
Click to show internal directories.
Click to hide internal directories.