Documentation ¶
Index ¶
- Constants
- func ETagMatch(header string, etag string) bool
- func ETagNoneMatch(header string, etag string) bool
- func GetCurrentRoot() string
- func NewServer(cfg *Config) *web.Router
- func NewTLSConfig(cert, key string) (*tls.Config, error)
- func ParseBearerAuthorizationHeader(header string) (string, error)
- type Accept
- type AcceptList
- type Config
- type Context
- func (c *Context) Authentication(w web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc)
- func (c *Context) AuthenticationRequired(w web.ResponseWriter, req *web.Request)
- func (c *Context) CORS(w web.ResponseWriter, r *web.Request, next web.NextMiddlewareFunc)
- func (c *Context) DeleteAccountHandler(w web.ResponseWriter, req *web.Request)
- func (c *Context) DeleteHandler(w web.ResponseWriter, req *web.Request)
- func (c *Context) GetAccountHandler(w web.ResponseWriter, req *web.Request)
- func (c *Context) GetHandler(w web.ResponseWriter, req *web.Request)
- func (c *Context) LoginHandler(w web.ResponseWriter, req *web.Request)
- func (c *Context) LogoutHandler(w web.ResponseWriter, req *web.Request)
- func (c *Context) NewAccountHandler(w web.ResponseWriter, req *web.Request)
- func (c *Context) OptionsHandler(w web.ResponseWriter, r *web.Request, methods []string)
- func (c *Context) PatchHandler(w web.ResponseWriter, req *web.Request)
- func (c *Context) PostHandler(w web.ResponseWriter, req *web.Request)
- func (c *Context) PutHandler(w web.ResponseWriter, req *web.Request)
- func (c *Context) RequestLogger(w web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc)
- func (c *Context) RootHandler(w web.ResponseWriter, req *web.Request)
- type Graph
- type User
Constants ¶
View Source
const HelixVersion = "0.1"
Variables ¶
This section is empty.
Functions ¶
func ETagNoneMatch ¶
func GetCurrentRoot ¶
func GetCurrentRoot() string
Types ¶
type AcceptList ¶
type AcceptList []Accept
AcceptList is a sorted list of clauses from an Accept header.
type Config ¶
type Config struct { Conf string Port string Logging bool Debug bool SkipVerify bool Root string StaticDir string StaticPath string Hostname string Cert string Key string TokenAge int64 HSTS bool BoltPath string BoltDB *bolt.DB FilePath string DataPath string ACLPath string MetaPath string }
func (*Config) LoadJSONFile ¶
LoadJSONFile loads server configuration
type Context ¶
func NewContext ¶
func NewContext() *Context
func (*Context) Authentication ¶
func (c *Context) Authentication(w web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc)
func (*Context) AuthenticationRequired ¶
func (c *Context) AuthenticationRequired(w web.ResponseWriter, req *web.Request)
func (*Context) CORS ¶
func (c *Context) CORS(w web.ResponseWriter, r *web.Request, next web.NextMiddlewareFunc)
func (*Context) DeleteAccountHandler ¶
func (c *Context) DeleteAccountHandler(w web.ResponseWriter, req *web.Request)
func (*Context) DeleteHandler ¶
func (c *Context) DeleteHandler(w web.ResponseWriter, req *web.Request)
func (*Context) GetAccountHandler ¶
func (c *Context) GetAccountHandler(w web.ResponseWriter, req *web.Request)
func (*Context) GetHandler ¶
func (c *Context) GetHandler(w web.ResponseWriter, req *web.Request)
func (*Context) LoginHandler ¶
func (c *Context) LoginHandler(w web.ResponseWriter, req *web.Request)
func (*Context) LogoutHandler ¶
func (c *Context) LogoutHandler(w web.ResponseWriter, req *web.Request)
func (*Context) NewAccountHandler ¶
func (c *Context) NewAccountHandler(w web.ResponseWriter, req *web.Request)
func (*Context) OptionsHandler ¶
func (*Context) PatchHandler ¶
func (c *Context) PatchHandler(w web.ResponseWriter, req *web.Request)
func (*Context) PostHandler ¶
func (c *Context) PostHandler(w web.ResponseWriter, req *web.Request)
func (*Context) PutHandler ¶
func (c *Context) PutHandler(w web.ResponseWriter, req *web.Request)
PutHandler is used to create/overwrite non-RDF resources
func (*Context) RequestLogger ¶
func (c *Context) RequestLogger(w web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc)
func (*Context) RootHandler ¶
func (c *Context) RootHandler(w web.ResponseWriter, req *web.Request)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.