Documentation ¶
Index ¶
- func ScopeToPerson(person_id int64) (ancestors []pacific.Ancestor)
- type Scope
- func (scope Scope) SharedThings(tag string) (shared_things []Share)
- func (scope Scope) Shares(tags []string) (shares []Share)
- func (scope Scope) Tag(tag_id string) Tag
- func (scope Scope) Tags() (tags []Tag)
- func (scope Scope) Thing(thing_id string) (thing Thing, err error)
- func (scope Scope) Things(tag_ar ...[]string) (things []Thing)
- type Share
- type Tag
- type Thing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScopeToPerson ¶
Types ¶
type Scope ¶
type Scope struct { Context pacific.Context Ancestors []pacific.Ancestor PersonId int64 PersonIdStr string OriginId string }
func (Scope) SharedThings ¶
type Tag ¶
type Thing ¶
type Thing struct { Scope Scope `datastore:"-" sql:"-" json:"-"` Value string `sql:"type:text" datastore:",noindex" json:"-"` Map map[string]interface{} `datastore:"-" sql:"-"` Tags map[string]Tag `datastore:"-" sql:"-"` Dispatched map[string]interface{} `datastore:"-" sql:"-" json:"-"` Mock bool `datastore:"-" sql:"-" json:"-"` Sharing int `datastore:"-" sql:"-" json:"-"` ThingId string Created time.Time `sql:"-"` Updated time.Time `sql:"-"` PersonId int64 PersonIdStr string Status int `json:"-"` IsNew bool `datastore:"-" sql:"-" json:"-"` }
func (*Thing) TagsFromString ¶
Click to show internal directories.
Click to hide internal directories.