enum

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RoleTypeValidator

func RoleTypeValidator(e RoleType) error

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

Types

type RoleType

type RoleType string
const (
	RoleTypeAdmin RoleType = "Admin"
	RoleTypeApi   RoleType = "Api"
)

func (RoleType) MarshalGQL

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

MarshalGQL implements graphql.Marshaler interface.

func (RoleType) String

func (e RoleType) String() string

func (*RoleType) UnmarshalGQL

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

UnmarshalGQL implements graphql.Unmarshaler interface.

func (RoleType) Values

func (RoleType) Values() (kinds []string)

Values provides list valid values for Enum.

Jump to

Keyboard shortcuts

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