Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCServer ¶
GRPCServer is a wrapper over grpc.Server that implements xservice.RunnerCloser interface.
func NewGRPCServer ¶
func NewGRPCServer(addr string, options ...grpc.ServerOption) (*GRPCServer, error)
NewGRPCServer creates a new port for the GRPC server.
type HttpServer ¶
HttpServer is a wrapper over http.Server that implements xservice.RunnerCloser interface.
func NewHTTPServer ¶
func NewHTTPServer(mux http.Handler, addr string) *HttpServer
NewHTTPServer creates a new http server port for the images.
func (*HttpServer) Close ¶
func (h *HttpServer) Close(_ context.Context) error
Close stops the http server.
func (*HttpServer) Run ¶
func (h *HttpServer) Run() error
Run starts running the server in it's own go routine.
Click to show internal directories.
Click to hide internal directories.