cnsts

package
v0.0.0-...-07f0968 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileBucket = `files`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string
const (
	ActionCreated Action = "created"
	ActionUpdated Action = "updated"
	ActionDeleted Action = "deleted"
)

func (*Action) String

func (a *Action) String() string

func (*Action) UnmarshalJSON

func (a *Action) UnmarshalJSON(raw []byte) error

func (*Action) Validate

func (a *Action) Validate()

type Role

type Role uint8
const (
	RoleAdmin  Role = 0
	RoleWriter Role = 1
	RoleReader Role = 2
)

func (*Role) String

func (r *Role) String() string

func (*Role) UnmarshalJSON

func (r *Role) UnmarshalJSON(raw []byte) error

func (*Role) Validate

func (r *Role) Validate()

type Sort

type Sort string
const (
	SortName      Sort = "name"
	SortCreatedOn Sort = "createdon"
	SortStartOn   Sort = "starton"
	SortEndOn     Sort = "endon"
)

func (*Sort) String

func (s *Sort) String() string

func (*Sort) UnmarshalJSON

func (s *Sort) UnmarshalJSON(raw []byte) error

func (*Sort) Validate

func (s *Sort) Validate()

type Type

type Type string
const (
	TypeProject Type = "project"
	TypeUser    Type = "user"
	TypeTask    Type = "task"
	TypeVitem   Type = "vitem"
	TypeFile    Type = "file"
	TypeComment Type = "comment"
)

func (*Type) String

func (t *Type) String() string

func (*Type) UnmarshalJSON

func (t *Type) UnmarshalJSON(raw []byte) error

func (*Type) Validate

func (t *Type) Validate()

Jump to

Keyboard shortcuts

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