Documentation ¶
Overview ¶
Package server is a library for use with starting a Pixur HTTP server.
Index ¶
- type RegFunc
- type Server
- func (s *Server) Addr() net.Addr
- func (s *Server) GetAndSetInterceptor(in grpc.UnaryClientInterceptor) grpc.UnaryClientInterceptor
- func (s *Server) Init(ctx context.Context, c *config.Config) (errCap error)
- func (s *Server) ListenAndServe(ctx context.Context, lnReady chan<- struct{}) error
- func (s *Server) Register(rf RegFunc)
- func (s *Server) Shutdown() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { // readable fields Client api.PixurServiceClient Now func() time.Time HTTPMux *http.ServeMux Random io.Reader Secure bool HTTPRoot *url.URL SiteName string // contains filtered or unexported fields }
Server is an HTTP server for Pixur
func (*Server) GetAndSetInterceptor ¶
func (s *Server) GetAndSetInterceptor(in grpc.UnaryClientInterceptor) grpc.UnaryClientInterceptor
GetAndSetInterceptor gets the current gRPC Unary interceptor, and replaces it.
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.