model

package
v0.0.0-...-54b0228 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func MarshalUint64

func MarshalUint64(i uint64) graphql.Marshaler

func UnmarshalUint64

func UnmarshalUint64(v interface{}) (uint64, error)

Types

type ChanStatus

type ChanStatus string
const (
	ChanStatusActivated   ChanStatus = "Activated"
	ChanStatusDeactivated ChanStatus = "Deactivated"
)

func (ChanStatus) IsValid

func (e ChanStatus) IsValid() bool

func (ChanStatus) MarshalGQL

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

func (ChanStatus) String

func (e ChanStatus) String() string

func (*ChanStatus) UnmarshalGQL

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

type InputChan

type InputChan struct {
	Name        string  `json:"name"`
	Description *string `json:"description"`
}

type ListChan

type ListChan struct {
	Total int             `json:"total"`
	List  []*ent.RuleChan `json:"list"`
}

type SetStatusChan

type SetStatusChan struct {
	ID     string      `json:"id"`
	Status *ChanStatus `json:"status"`
}

type Version

type Version struct {
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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