Documentation ¶
Index ¶
- Variables
- func MarshalPluginID(t id.PluginID) graphql.Marshaler
- func ToID[A idx.Type](a ID) (idx.ID[A], error)
- func ToID2[A, B idx.Type](a, b ID) (ai idx.ID[A], bi idx.ID[B], err error)
- func ToID3[A, B, C idx.Type](a, b, c ID) (ai idx.ID[A], bi idx.ID[B], ci idx.ID[C], err error)
- func ToIDRef[A idx.Type](a *ID) *idx.ID[A]
- func ToPluginID(a ID) (id.PluginID, error)
- func ToPluginID2(a, b ID) (ai id.PluginID, bi id.PluginID, err error)
- func ToPluginIDRef(a *ID) *id.PluginID
- func ToStringIDRef[T idx.Type](a *ID) *idx.StringID[T]
- func UnmarshalPluginID(v interface{}) (id.PluginID, error)
- type CreateOrganizationInput
- type CreatePluginInput
- type DeleteOrganizationInput
- type DeleteOrganizationPayload
- type DeletePluginInput
- type DeletePluginPayload
- type DeleteVersionInput
- type DeleteVersionPayload
- type ID
- type LikePluginInput
- type Me
- type MePayload
- type Node
- type NodeType
- type Organization
- type OrganizationPayload
- type PageInfo
- type Plugin
- type PluginConnection
- type PluginEdge
- type PluginPayload
- type PluginSort
- type PluginType
- type PluginsInput
- type Publisher
- type UnlikePluginInput
- type UpdateMeInput
- type UpdateOrganizationInput
- type UpdatePluginInput
- type UpdateVersionInput
- type User
- type Version
- type VersionPayload
Constants ¶
This section is empty.
Variables ¶
View Source
var AllNodeType = []NodeType{ NodeTypePlugin, NodeTypeUser, }
View Source
var AllPluginSort = []PluginSort{ PluginSortNameAsc, PluginSortNameDesc, PluginSortPublisherAsc, PluginSortPublisherDesc, PluginSortPublishedatAsc, PluginSortPublishedatDesc, PluginSortDownloadsAsc, PluginSortDownloadsDesc, }
View Source
var AllPluginType = []PluginType{ PluginTypeReearth, PluginTypeReearthCms, }
Functions ¶
func ToPluginIDRef ¶
func UnmarshalPluginID ¶
Types ¶
type CreateOrganizationInput ¶
type CreatePluginInput ¶
type DeleteOrganizationInput ¶
type DeleteOrganizationInput struct {
OrganizationID string `json:"organizationId"`
}
type DeleteOrganizationPayload ¶
type DeleteOrganizationPayload struct {
OrganizationID string `json:"organizationId"`
}
type DeletePluginInput ¶
type DeletePluginInput struct {
PluginID string `json:"pluginId"`
}
type DeletePluginPayload ¶
type DeletePluginPayload struct {
PluginID string `json:"pluginId"`
}
type DeleteVersionInput ¶
type DeleteVersionInput struct {
VersionID string `json:"versionId"`
}
type DeleteVersionPayload ¶
type DeleteVersionPayload struct {
VersionID string `json:"versionId"`
}
type LikePluginInput ¶
type LikePluginInput struct {
PluginID string `json:"pluginId"`
}
type Me ¶
type Me struct { Lang *string `json:"lang"` Name string `json:"name"` DisplayName *string `json:"displayName"` Description *string `json:"description"` Tel *string `json:"tel"` Publishable bool `json:"publishable"` // contains filtered or unexported fields }
func (*Me) IsPublisher ¶
func (*Me) IsPublisher()
type Organization ¶
type Organization struct { ID string `json:"id"` Name string `json:"name"` DisplayName *string `json:"displayName,omitempty"` Description *string `json:"description,omitempty"` Active bool `json:"active"` Plugins *PluginConnection `json:"plugins"` MemberIds []string `json:"memberIds"` Members []*User `json:"members"` }
func ToOrganization ¶
func ToOrganization(o *user.Organization) *Organization
func (Organization) IsNode ¶
func (Organization) IsNode()
func (Organization) IsPublisher ¶
func (Organization) IsPublisher()
type OrganizationPayload ¶
type OrganizationPayload struct {
Organization *Organization `json:"organization"`
}
type Plugin ¶
type Plugin struct { ID string `json:"id"` Type PluginType `json:"type"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Name string `json:"name"` Author *string `json:"author"` Description *string `json:"description"` Icon *string `json:"icon"` Repository *string `json:"repository"` PublishedAt time.Time `json:"publishedAt"` Downloads int `json:"downloads"` Active bool `json:"active"` Readme string `json:"readme"` Tags []string `json:"tags"` LatestVersion *Version `json:"latestVersion"` Images []string `json:"images"` Like int `json:"like"` Core bool `json:"core"` // contains filtered or unexported fields }
func (*Plugin) PublisherID ¶
type PluginConnection ¶
type PluginConnection struct { Edges []*PluginEdge `json:"edges"` Nodes []*Plugin `json:"nodes"` PageInfo *PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
type PluginEdge ¶
type PluginPayload ¶
type PluginPayload struct {
Plugin *Plugin `json:"plugin"`
}
type PluginSort ¶
type PluginSort string
const ( PluginSortNameAsc PluginSort = "NAME_ASC" PluginSortNameDesc PluginSort = "NAME_DESC" PluginSortPublisherAsc PluginSort = "PUBLISHER_ASC" PluginSortPublisherDesc PluginSort = "PUBLISHER_DESC" PluginSortPublishedatAsc PluginSort = "PUBLISHEDAT_ASC" PluginSortPublishedatDesc PluginSort = "PUBLISHEDAT_DESC" PluginSortDownloadsAsc PluginSort = "DOWNLOADS_ASC" PluginSortDownloadsDesc PluginSort = "DOWNLOADS_DESC" )
func (PluginSort) IsValid ¶
func (e PluginSort) IsValid() bool
func (PluginSort) MarshalGQL ¶
func (e PluginSort) MarshalGQL(w io.Writer)
func (PluginSort) String ¶
func (e PluginSort) String() string
func (*PluginSort) UnmarshalGQL ¶
func (e *PluginSort) UnmarshalGQL(v interface{}) error
type PluginType ¶
type PluginType string
const ( PluginTypeReearth PluginType = "REEARTH" PluginTypeReearthCms PluginType = "REEARTH_CMS" )
func (PluginType) IsValid ¶
func (e PluginType) IsValid() bool
func (PluginType) MarshalGQL ¶
func (e PluginType) MarshalGQL(w io.Writer)
func (PluginType) String ¶
func (e PluginType) String() string
func (*PluginType) UnmarshalGQL ¶
func (e *PluginType) UnmarshalGQL(v interface{}) error
type PluginsInput ¶
type PluginsInput struct { First *int `json:"first,omitempty"` Last *int `json:"last,omitempty"` Before *string `json:"before,omitempty"` After *string `json:"after,omitempty"` Offset *int `json:"offset,omitempty"` Keyword *string `json:"keyword,omitempty"` Liked *bool `json:"liked,omitempty"` Tags []string `json:"tags,omitempty"` Types []PluginType `json:"types,omitempty"` Publisher *string `json:"publisher,omitempty"` Sort *PluginSort `json:"sort,omitempty"` }
type UnlikePluginInput ¶
type UnlikePluginInput struct {
PluginID string `json:"pluginId"`
}
type UpdateMeInput ¶
type UpdateOrganizationInput ¶
type UpdateOrganizationInput struct { OrganizationID string `json:"organizationId"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Active *bool `json:"active,omitempty"` NewMembers []string `json:"newMembers,omitempty"` DeletedMembers []string `json:"deletedMembers,omitempty"` }
type UpdatePluginInput ¶
type UpdateVersionInput ¶
type User ¶
type User struct { Name string `json:"name"` DisplayName *string `json:"displayName"` Description *string `json:"description"` OrganizationIds []string `json:"organizationIds"` Organizations []*Organization `json:"organizations"` // contains filtered or unexported fields }
func (*User) IsPublisher ¶
func (*User) IsPublisher()
type Version ¶
type Version struct { Version string `json:"version"` Description string `json:"description"` Downloads int `json:"downloads"` Active bool `json:"active"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` PublishedAt time.Time `json:"publishedAt"` Checksum string `json:"checksum"` }
type VersionPayload ¶
Click to show internal directories.
Click to hide internal directories.