Documentation
¶
Index ¶
- Variables
- func WriteWebsocketMessage(mt int, id string, message []byte)
- type FileProvider
- type Gql
- type Http
- func (o *Http) FrontEmbed(filesystem embed.FS)
- func (o *Http) MatcherFunc(hr *http.Request, hm *mux.RouteMatch) (r bool)
- func (o *Http) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (o *Http) SetGql(gql Gql) *Http
- func (o *Http) SetRest(rest Rest) *Http
- func (o *Http) Start()
- func (o *Http) WebSocketMessage(mt int, message []byte, id string, httpPath *Path, sessionID string)
- type Path
- type ProviderKind
- type Redirect
- type Rest
- type URL
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func WriteWebsocketMessage ¶
Types ¶
type FileProvider ¶ added in v0.17.0
type FileProvider struct {
// contains filtered or unexported fields
}
func (*FileProvider) Count ¶ added in v0.17.0
func (o *FileProvider) Count() (r int, err error)
func (*FileProvider) Destroy ¶ added in v0.17.0
func (o *FileProvider) Destroy(sessionID string) (err error)
type Http ¶
type Http struct { HttpPort string `json:"httpPort,omitempty"` HttpsPort string `json:"httpsPort,omitempty"` CookieName string `json:"cookieName,omitempty"` SessionPath string `json:"sessionPath,omitempty"` SessionMaxLifetime int64 `json:"sessionMaxLifetime,omitempty"` SessionProvider string `json:"sessionProvider,omitempty"` Server []server `json:"server,omitempty"` CheckOrigin func(url URL) (bool, interface{}) OnBegin func(url URL, httpPath *Path, originData interface{}, uid string) bool OnFinish func(isErr bool, uid string) OnSession func() (r interface{}) // contains filtered or unexported fields }
func (*Http) FrontEmbed ¶ added in v0.13.0
func (*Http) MatcherFunc ¶
type Path ¶
type Path struct { Mode string `json:"mode,omitempty"` Path string `json:"path,omitempty"` Endpoint string `json:"endpoint,omitempty"` Rewrite bool `json:"rewrite,omitempty"` RewriteTo string `json:"rewriteTo,omitempty"` Redirect Redirect `json:"redirect,omitempty"` FileDefault string `json:"fileDefault,omitempty"` // contains filtered or unexported fields }
type ProviderKind ¶ added in v0.17.0
type ProviderKind int
const ( DATABASE_PROVIDER ProviderKind = iota FILE_PROVIDER MEMORY_PROVIDER )
Click to show internal directories.
Click to hide internal directories.