Documentation ¶
Index ¶
- type Cursor
- type Operator
- func (o *Operator) AddNewScene(team id.TeamID, scene id.SceneID)
- func (o *Operator) AddNewTeam(team id.TeamID)
- func (o *Operator) AllOwningScenes() scene.IDList
- func (o *Operator) AllOwningTeams() user.TeamIDList
- func (o *Operator) AllReadableScenes() scene.IDList
- func (o *Operator) AllReadableTeams() user.TeamIDList
- func (o *Operator) AllWritableScenes() scene.IDList
- func (o *Operator) AllWritableTeams() user.TeamIDList
- func (o *Operator) IsOwningScene(scene ...id.SceneID) bool
- func (o *Operator) IsOwningTeam(team ...id.TeamID) bool
- func (o *Operator) IsReadableScene(scene ...id.SceneID) bool
- func (o *Operator) IsReadableTeam(team ...id.TeamID) bool
- func (o *Operator) IsWritableScene(scene ...id.SceneID) bool
- func (o *Operator) IsWritableTeam(team ...id.TeamID) bool
- func (o *Operator) Teams(r user.Role) user.TeamIDList
- type PageInfo
- type Pagination
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator struct { User user.ID ReadableTeams user.TeamIDList WritableTeams user.TeamIDList OwningTeams user.TeamIDList ReadableScenes scene.IDList WritableScenes scene.IDList OwningScenes scene.IDList }
func (*Operator) AddNewScene ¶ added in v0.6.0
func (*Operator) AddNewTeam ¶ added in v0.6.0
func (*Operator) AllOwningScenes ¶ added in v0.6.0
func (*Operator) AllOwningTeams ¶ added in v0.6.0
func (o *Operator) AllOwningTeams() user.TeamIDList
func (*Operator) AllReadableScenes ¶ added in v0.6.0
func (*Operator) AllReadableTeams ¶ added in v0.6.0
func (o *Operator) AllReadableTeams() user.TeamIDList
func (*Operator) AllWritableScenes ¶ added in v0.6.0
func (*Operator) AllWritableTeams ¶ added in v0.6.0
func (o *Operator) AllWritableTeams() user.TeamIDList
func (*Operator) IsOwningScene ¶ added in v0.6.0
func (*Operator) IsOwningTeam ¶ added in v0.6.0
func (*Operator) IsReadableScene ¶ added in v0.6.0
func (*Operator) IsReadableTeam ¶ added in v0.6.0
func (*Operator) IsWritableScene ¶ added in v0.6.0
func (*Operator) IsWritableTeam ¶ added in v0.6.0
type PageInfo ¶
type PageInfo struct {
// contains filtered or unexported fields
}
func EmptyPageInfo ¶ added in v0.6.0
func EmptyPageInfo() *PageInfo
func NewPageInfo ¶
func (*PageInfo) HasNextPage ¶
func (*PageInfo) HasPreviousPage ¶
func (*PageInfo) StartCursor ¶
func (*PageInfo) TotalCount ¶
type Pagination ¶
func NewPagination ¶
func NewPagination(first *int, last *int, before *Cursor, after *Cursor) *Pagination
Click to show internal directories.
Click to hide internal directories.