Documentation ¶
Index ¶
- func AddEndpoint(route *Route)
- func BuildDebugEndpoint(route Route, sourceCode, reasons []byte)
- func CleanUp()
- func Delegate(w http.ResponseWriter, stream <-chan *EchoPacket)
- func Deploy(config *Config)
- func HandshakeFormat(initial []byte) bool
- func HostRootEndpoint()
- func HostStaticFiles()
- func New(config *Config)
- func RandomNumber() uint16
- func RandomSessionId(ip string, unixSeconds int64) [32]byte
- func RunEndpointService() net.Listener
- func SetHttpPort(port int)
- func SetProjectName(name string)
- func SetSecureHttpPort(port int)
- func StartAuthorizer(config *Config)
- func StartEndpoint(route Route)
- func StartEndpoints(config *Config)
- func StartRootEndpoint(route Route)
- type AuthorizeHandler
- type Config
- type ConnWrite
- type ConnWriter
- type ContextHolder
- type ControllerEndpoint
- func (controller *ControllerEndpoint) RedirectEndpointOnError(w http.ResponseWriter, r *http.Request, logic func() []byte)
- func (controller *ControllerEndpoint) RedirectEndpointOnLoading(w http.ResponseWriter, r *http.Request)
- func (controller *ControllerEndpoint) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type CustomConcurrentMap
- type EchoPacket
- type EndpointFunc
- type MiddlewareWriterContext
- type RequestSession
- type Route
- type RouteConfig
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEndpoint ¶
func AddEndpoint(route *Route)
func BuildDebugEndpoint ¶
func Delegate ¶
func Delegate(w http.ResponseWriter, stream <-chan *EchoPacket)
func HandshakeFormat ¶
func HostRootEndpoint ¶
func HostRootEndpoint()
func HostStaticFiles ¶
func HostStaticFiles()
func RandomNumber ¶
func RandomNumber() uint16
func RandomSessionId ¶
func RunEndpointService ¶
func SetHttpPort ¶
func SetHttpPort(port int)
func SetProjectName ¶
func SetProjectName(name string)
func SetSecureHttpPort ¶
func SetSecureHttpPort(port int)
func StartAuthorizer ¶
func StartAuthorizer(config *Config)
func StartEndpoint ¶
func StartEndpoint(route Route)
func StartEndpoints ¶
func StartEndpoints(config *Config)
func StartRootEndpoint ¶
func StartRootEndpoint(route Route)
Types ¶
type AuthorizeHandler ¶
type AuthorizeHandler interface { Success(handler http.HandlerFunc) AuthorizeHandler Failed(handler http.HandlerFunc) AuthorizeHandler Handler() http.HandlerFunc }
func LoadAuthorizer ¶
func LoadAuthorizer(route Route) AuthorizeHandler
type ContextHolder ¶
type ControllerEndpoint ¶
type ControllerEndpoint struct { ProjectName string Route // contains filtered or unexported fields }
func (*ControllerEndpoint) RedirectEndpointOnError ¶
func (controller *ControllerEndpoint) RedirectEndpointOnError(w http.ResponseWriter, r *http.Request, logic func() []byte)
func (*ControllerEndpoint) RedirectEndpointOnLoading ¶
func (controller *ControllerEndpoint) RedirectEndpointOnLoading(w http.ResponseWriter, r *http.Request)
func (*ControllerEndpoint) ServeHTTP ¶
func (controller *ControllerEndpoint) ServeHTTP(w http.ResponseWriter, r *http.Request)
type CustomConcurrentMap ¶
func (*CustomConcurrentMap) Delete ¶
func (customConcurrentMap *CustomConcurrentMap) Delete(key string)
func (*CustomConcurrentMap) Load ¶
func (customConcurrentMap *CustomConcurrentMap) Load(key string) (ConnWriter, bool)
func (*CustomConcurrentMap) Store ¶
func (customConcurrentMap *CustomConcurrentMap) Store(key string, value ConnWriter)
type EchoPacket ¶
type EndpointFunc ¶
type EndpointFunc func() []byte
func (EndpointFunc) Close ¶
func (endpointFunc EndpointFunc) Close() error
type MiddlewareWriterContext ¶
type MiddlewareWriterContext struct {
// contains filtered or unexported fields
}
func (*MiddlewareWriterContext) Header ¶
func (context *MiddlewareWriterContext) Header() http.Header
func (*MiddlewareWriterContext) Write ¶
func (context *MiddlewareWriterContext) Write(data []byte) (int, error)
func (*MiddlewareWriterContext) WriteHeader ¶
func (context *MiddlewareWriterContext) WriteHeader(statusCode int)
type RequestSession ¶
type RequestSession struct {
// contains filtered or unexported fields
}
func (*RequestSession) Close ¶
func (sessions *RequestSession) Close(packet *EchoPacket, ack *bool) error
func (*RequestSession) Write ¶
func (sessions *RequestSession) Write(packet *EchoPacket, ack *bool) error
type Route ¶
type Route struct { Path string `yaml:"path"` Directory string `yaml:"directory"` *RouteConfig `yaml:"config"` // contains filtered or unexported fields }
type RouteConfig ¶
Click to show internal directories.
Click to hide internal directories.