Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunGRPCServer ¶
RunGRPCServer run gorush grpc server
Types ¶
type Health ¶
type Health interface { // Check returns if server is healthy or not Check(c context.Context) (bool, error) }
Health defines a health-check connection.
func NewGrpcHealthClient ¶
func NewGrpcHealthClient(conn *grpc.ClientConn) Health
NewGrpcHealthClient returns a new grpc Client.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is used to implement gorush grpc server.
func (*Server) Check ¶
func (s *Server) Check(ctx context.Context, in *proto.HealthCheckRequest) (*proto.HealthCheckResponse, error)
Check implements `service Health`.
func (*Server) Send ¶
func (s *Server) Send(ctx context.Context, in *proto.NotificationRequest) (*proto.NotificationReply, error)
Send implements helloworld.GreeterServer
Click to show internal directories.
Click to hide internal directories.