Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllNodeAccess = []NodeAccess{ NodeAccessPublic, NodeAccessRestricted, NodeAccessPrivate, }
View Source
var AllPostType = []PostType{ PostTypeText, PostTypeMedia, PostTypeLink, }
Functions ¶
This section is empty.
Types ¶
type NewNode ¶
type NewNode struct { Name string `json:"name"` Tags []*string `json:"tags"` Access NodeAccess `json:"access"` Nsfw bool `json:"nsfw"` Description *string `json:"description"` }
type Node ¶
type Node struct { Name string `json:"name"` Tags []*string `json:"tags"` Access NodeAccess `json:"access"` Nsfw bool `json:"nsfw"` Description *string `json:"description"` }
type NodeAccess ¶
type NodeAccess string
const ( NodeAccessPublic NodeAccess = "public" NodeAccessRestricted NodeAccess = "restricted" NodeAccessPrivate NodeAccess = "private" )
func (NodeAccess) IsValid ¶
func (e NodeAccess) IsValid() bool
func (NodeAccess) MarshalGQL ¶
func (e NodeAccess) MarshalGQL(w io.Writer)
func (NodeAccess) String ¶
func (e NodeAccess) String() string
func (*NodeAccess) UnmarshalGQL ¶
func (e *NodeAccess) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.