Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAssetType = []AssetType{ AssetTypeDeleted, AssetTypePrivate, AssetTypeMembersOnly, AssetTypePublic, AssetTypeCommercial, }
View Source
var AllMemberRole = []MemberRole{ MemberRoleOwner, MemberRoleAdmin, MemberRoleTeammate, }
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Type AssetType `json:"type"` EventCaps []*EventCapability `json:"eventCaps"` ImageURL string `json:"imageUrl"` Disabled bool `json:"disabled"` CreatedAt string `json:"createdAt"` UpdatedAt *string `json:"updatedAt"` }
type AssetInput ¶
type AssetType ¶
type AssetType string
func (AssetType) MarshalGQL ¶
func (*AssetType) UnmarshalGQL ¶
type EventCapability ¶
type MemberInput ¶
type MemberInput struct { UserID string `json:"userId"` Roles []MemberRole `json:"roles"` }
type MemberRole ¶
type MemberRole string
const ( MemberRoleOwner MemberRole = "OWNER" MemberRoleAdmin MemberRole = "ADMIN" MemberRoleTeammate MemberRole = "TEAMMATE" )
func (MemberRole) IsValid ¶
func (e MemberRole) IsValid() bool
func (MemberRole) MarshalGQL ¶
func (e MemberRole) MarshalGQL(w io.Writer)
func (MemberRole) String ¶
func (e MemberRole) String() string
func (*MemberRole) UnmarshalGQL ¶
func (e *MemberRole) UnmarshalGQL(v interface{}) error
type Organization ¶
type Organization struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Type AssetType `json:"type"` Wallet *Wallet `json:"wallet"` Assets []*Asset `json:"assets"` Members []*Member `json:"members"` CreatedAt string `json:"createdAt"` UpdatedAt *string `json:"updatedAt"` }
type OrganizationInput ¶
type SessionInput ¶
type User ¶
type User struct { ID string `json:"id"` Name string `json:"name"` FirstName string `json:"firstName"` LastName string `json:"lastName"` NickName string `json:"nickName"` AvatarURL string `json:"avatarUrl"` Email string `json:"email"` Wallet *Wallet `json:"wallet"` Disabled bool `json:"disabled"` CreatedAt string `json:"createdAt"` UpdatedAt *string `json:"updatedAt"` }
type UserInput ¶
type WalletInput ¶
type WalletInput struct {
EthAddress string `json:"ethAddress"`
}
Click to show internal directories.
Click to hide internal directories.