usecase

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor string

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 (o *Operator) AddNewScene(team id.TeamID, scene id.SceneID)

func (*Operator) AddNewTeam added in v0.6.0

func (o *Operator) AddNewTeam(team id.TeamID)

func (*Operator) AllOwningScenes added in v0.6.0

func (o *Operator) AllOwningScenes() scene.IDList

func (*Operator) AllOwningTeams added in v0.6.0

func (o *Operator) AllOwningTeams() user.TeamIDList

func (*Operator) AllReadableScenes added in v0.6.0

func (o *Operator) AllReadableScenes() scene.IDList

func (*Operator) AllReadableTeams added in v0.6.0

func (o *Operator) AllReadableTeams() user.TeamIDList

func (*Operator) AllWritableScenes added in v0.6.0

func (o *Operator) AllWritableScenes() scene.IDList

func (*Operator) AllWritableTeams added in v0.6.0

func (o *Operator) AllWritableTeams() user.TeamIDList

func (*Operator) IsOwningScene added in v0.6.0

func (o *Operator) IsOwningScene(scene ...id.SceneID) bool

func (*Operator) IsOwningTeam added in v0.6.0

func (o *Operator) IsOwningTeam(team ...id.TeamID) bool

func (*Operator) IsReadableScene added in v0.6.0

func (o *Operator) IsReadableScene(scene ...id.SceneID) bool

func (*Operator) IsReadableTeam added in v0.6.0

func (o *Operator) IsReadableTeam(team ...id.TeamID) bool

func (*Operator) IsWritableScene added in v0.6.0

func (o *Operator) IsWritableScene(scene ...id.SceneID) bool

func (*Operator) IsWritableTeam added in v0.6.0

func (o *Operator) IsWritableTeam(team ...id.TeamID) bool

func (*Operator) Teams

func (o *Operator) Teams(r user.Role) user.TeamIDList

type PageInfo

type PageInfo struct {
	// contains filtered or unexported fields
}

func EmptyPageInfo added in v0.6.0

func EmptyPageInfo() *PageInfo

func NewPageInfo

func NewPageInfo(totalCount int, startCursor *Cursor, endCursor *Cursor, hasNextPage bool, hasPreviousPage bool) *PageInfo

func (*PageInfo) EndCursor

func (p *PageInfo) EndCursor() *Cursor

func (*PageInfo) HasNextPage

func (p *PageInfo) HasNextPage() bool

func (*PageInfo) HasPreviousPage

func (p *PageInfo) HasPreviousPage() bool

func (*PageInfo) StartCursor

func (p *PageInfo) StartCursor() *Cursor

func (*PageInfo) TotalCount

func (p *PageInfo) TotalCount() int

type Pagination

type Pagination struct {
	Before *Cursor
	After  *Cursor
	First  *int
	Last   *int
}

func NewPagination

func NewPagination(first *int, last *int, before *Cursor, after *Cursor) *Pagination

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL