Documentation ¶
Overview ¶
* Copyright (c) 2023 Juice Technologies, Inc. All Rights Reserved.
Index ¶
- Variables
- type Endpoint
- type Server
- func (server *Server) AddEndpoint(endpoint Endpoint)
- func (server *Server) AddEndpointFunc(method string, path string, fn http.HandlerFunc, requireAuth bool)
- func (server *Server) AddEndpointFuncWithQuery(method string, path string, fn http.HandlerFunc, requireAuth bool, ...)
- func (server *Server) AddEndpointHandler(method string, path string, handler http.Handler, requireAuth bool)
- func (server *Server) AddNamedEndpointFunc(name string, method string, path string, fn http.HandlerFunc, requireAuth bool)
- func (server *Server) Port() int
- func (server *Server) RemoveEndpointByName(name string)
- func (server *Server) Run(group task.Group) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidPort = errors.New("server: address does not contain a valid port")
)
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddEndpoint ¶
func (*Server) AddEndpointFunc ¶
func (*Server) AddEndpointFuncWithQuery ¶
func (*Server) AddEndpointHandler ¶
func (*Server) AddNamedEndpointFunc ¶
func (*Server) RemoveEndpointByName ¶
Click to show internal directories.
Click to hide internal directories.