Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpPingService ¶
type HttpPingService struct { v1.UnimplementedPingServiceServer // contains filtered or unexported fields }
func NewHttpPingService ¶
func NewHttpPingService(ctx context.Context, h host.Host, opts ...ServiceOption) (*HttpPingService, error)
func (*HttpPingService) ListenAndServe ¶
func (s *HttpPingService) ListenAndServe() error
func (*HttpPingService) Ping ¶
func (s *HttpPingService) Ping(ctx context.Context, req *v1.PingRequest) (*v1.PingResponse, error)
type ServiceOption ¶
type ServiceOption func(service *HttpPingService)
func WithHttpAddr ¶
func WithHttpAddr(httpAddr string) ServiceOption
func WithServeMux ¶
func WithServeMux(mux *runtime.ServeMux) ServiceOption
Click to show internal directories.
Click to hide internal directories.