model

package
v0.0.0-...-bddae19 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllRequestAction = []RequestAction{
	RequestActionRead,
}
View Source
var AllRequestObj = []RequestObj{
	RequestObjUser,
}
View Source
var AllRoles = []Roles{
	RolesAdmin,
	RolesManager,
}

Functions

This section is empty.

Types

type HealthResponse

type HealthResponse struct {
	Message string `json:"message"`
}

type RequestAction

type RequestAction string
const (
	RequestActionRead RequestAction = "READ"
)

func (RequestAction) IsValid

func (e RequestAction) IsValid() bool

func (RequestAction) MarshalGQL

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

func (RequestAction) String

func (e RequestAction) String() string

func (*RequestAction) UnmarshalGQL

func (e *RequestAction) UnmarshalGQL(v interface{}) error

type RequestObj

type RequestObj string
const (
	RequestObjUser RequestObj = "USER"
)

func (RequestObj) IsValid

func (e RequestObj) IsValid() bool

func (RequestObj) MarshalGQL

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

func (RequestObj) String

func (e RequestObj) String() string

func (*RequestObj) UnmarshalGQL

func (e *RequestObj) UnmarshalGQL(v interface{}) error

type RoleRequest

type RoleRequest struct {
	Role Roles `json:"role"`
}

type Roles

type Roles string
const (
	RolesAdmin   Roles = "ADMIN"
	RolesManager Roles = "MANAGER"
)

func (Roles) IsValid

func (e Roles) IsValid() bool

func (Roles) MarshalGQL

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

func (Roles) String

func (e Roles) String() string

func (*Roles) UnmarshalGQL

func (e *Roles) UnmarshalGQL(v interface{}) error

type TokenResponse

type TokenResponse struct {
	AccessToken string `json:"accessToken"`
}

Jump to

Keyboard shortcuts

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