Documentation ¶
Index ¶
- func BackboneJSON(things []things.Thing, state State, fields []string) interface{}
- func BootstrapHandler(w http.ResponseWriter, r *http.Request)
- func Errr(w http.ResponseWriter, r *http.Request)
- func Hello(w http.ResponseWriter, r *http.Request)
- func HostAndPort(s string) string
- func KVfromRequestForm(form url.Values, highlights ...string) (kv map[string]interface{}, highlight interface{})
- func KVfromRequestJSON(request_body io.ReadCloser, highlights ...string) (kv map[string]interface{}, highlight interface{})
- func Router(w http.ResponseWriter, r *http.Request)
- func ScopeId(scope things.Scope) (id string)
- func ScopeToOrigin(origin_url string, person_id int64) (ancestors []pacific.Ancestor)
- type Origin
- type Person
- type State
- func (state *State) InitPerson(src_person *kolkata.Person, scope *things.Scope, username_ar ...string) (person Person)
- func (state State) NewOrigin(host string) (origin Origin)
- func (state *State) NewPerson(username string, scope *things.Scope, src_person *kolkata.Person) (person Person)
- func (state State) PutPostHandler() (thing things.Thing, err error)
- func (state *State) Scope() (scope things.Scope)
- func (state *State) ScopeToPerson() (scope things.Scope)
- func (state State) SetOrigin() (origin Origin)
- type WS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackboneJSON ¶
func BootstrapHandler ¶
func BootstrapHandler(w http.ResponseWriter, r *http.Request)
func HostAndPort ¶
func KVfromRequestForm ¶
func KVfromRequestJSON ¶
func KVfromRequestJSON(request_body io.ReadCloser, highlights ...string) (kv map[string]interface{}, highlight interface{})
Types ¶
type Origin ¶
type Person ¶
type State ¶
type State struct { Bootstrap string Writer http.ResponseWriter Request *http.Request Context pacific.Context CurrentScope things.Scope AcceptType string ContentType string Path string PersonId int64 PersonIdStr string Host string Services map[string]interface{} Person kolkata.Person ThePerson Person NewUser bool Origin Origin OriginStr string Dev bool }
func CreateState ¶
func CreateState(w http.ResponseWriter, r *http.Request) (state State)
func ScopeAndState ¶
func (*State) InitPerson ¶
func (*State) ScopeToPerson ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.