Documentation ¶
Index ¶
- type GrpcController
- func (g *GrpcController) GracefulStop()
- func (g GrpcController) Register(ctx context.Context, req *proto.RegisterRequest) (*proto.RegisterResponse, error)
- func (g *GrpcController) Run() error
- func (g *GrpcController) RunOnAddr(addr string) error
- func (g *GrpcController) Stop()
- func (g GrpcController) Unregister(ctx context.Context, req *proto.UnregisterRequest) (*proto.UnregisterResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcController ¶
type GrpcController struct {
// contains filtered or unexported fields
}
func New ¶
func New(application *application.Application) GrpcController
func (*GrpcController) GracefulStop ¶
func (g *GrpcController) GracefulStop()
func (GrpcController) Register ¶
func (g GrpcController) Register(ctx context.Context, req *proto.RegisterRequest) (*proto.RegisterResponse, error)
func (*GrpcController) Run ¶
func (g *GrpcController) Run() error
func (*GrpcController) RunOnAddr ¶
func (g *GrpcController) RunOnAddr(addr string) error
func (*GrpcController) Stop ¶
func (g *GrpcController) Stop()
func (GrpcController) Unregister ¶
func (g GrpcController) Unregister(ctx context.Context, req *proto.UnregisterRequest) (*proto.UnregisterResponse, error)
Click to show internal directories.
Click to hide internal directories.