role

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validator

func Validator(e Role) error

Validator is a validator for the "role" field enum values. It is called by the builders before save.

Types

type Role

type Role string
const (
	Admin   Role = "ADMIN"
	User    Role = "USER"
	Unknown Role = "UNKNOWN"
)

func (Role) MarshalGQL

func (e Role) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Role) String

func (e Role) String() string

func (*Role) UnmarshalGQL

func (e *Role) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

func (Role) Values

func (Role) Values() (roles []string)

Jump to

Keyboard shortcuts

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