pixellandchat

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(apiUrl string, token string) (graphql.Client, error)

Types

type Access

type Access string
const (
	AccessPublic  Access = "PUBLIC"
	AccessPrivate Access = "PRIVATE"
)

type AddChannelAddChannelInstanceChannelsEdge

type AddChannelAddChannelInstanceChannelsEdge struct {
	InstanceChannelsEdgeFragment `json:"-"`
}

AddChannelAddChannelInstanceChannelsEdge includes the requested fields of the GraphQL type InstanceChannelsEdge.

func (*AddChannelAddChannelInstanceChannelsEdge) GetCursor

GetCursor returns AddChannelAddChannelInstanceChannelsEdge.Cursor, and is useful for accessing the field via an interface.

func (*AddChannelAddChannelInstanceChannelsEdge) GetNode

GetNode returns AddChannelAddChannelInstanceChannelsEdge.Node, and is useful for accessing the field via an interface.

func (*AddChannelAddChannelInstanceChannelsEdge) MarshalJSON

func (v *AddChannelAddChannelInstanceChannelsEdge) MarshalJSON() ([]byte, error)

func (*AddChannelAddChannelInstanceChannelsEdge) UnmarshalJSON

func (v *AddChannelAddChannelInstanceChannelsEdge) UnmarshalJSON(b []byte) error

type AddChannelResponse

type AddChannelResponse struct {
	AddChannel AddChannelAddChannelInstanceChannelsEdge `json:"addChannel"`
}

AddChannelResponse is returned by AddChannel on success.

func AddChannel

func AddChannel(
	ctx context.Context,
	client graphql.Client,
	input ChannelInput,
	messagesLast int,
	messagesBefore string,
) (*AddChannelResponse, error)

func (*AddChannelResponse) GetAddChannel

GetAddChannel returns AddChannelResponse.AddChannel, and is useful for accessing the field via an interface.

type AddInstanceAddInstanceUserInstancesEdge

type AddInstanceAddInstanceUserInstancesEdge struct {
	UserInstancesEdgeFragment `json:"-"`
}

AddInstanceAddInstanceUserInstancesEdge includes the requested fields of the GraphQL type UserInstancesEdge.

func (*AddInstanceAddInstanceUserInstancesEdge) GetCursor

GetCursor returns AddInstanceAddInstanceUserInstancesEdge.Cursor, and is useful for accessing the field via an interface.

func (*AddInstanceAddInstanceUserInstancesEdge) GetInstanceUser

GetInstanceUser returns AddInstanceAddInstanceUserInstancesEdge.InstanceUser, and is useful for accessing the field via an interface.

func (*AddInstanceAddInstanceUserInstancesEdge) GetLikedByMe

GetLikedByMe returns AddInstanceAddInstanceUserInstancesEdge.LikedByMe, and is useful for accessing the field via an interface.

func (*AddInstanceAddInstanceUserInstancesEdge) GetNode

GetNode returns AddInstanceAddInstanceUserInstancesEdge.Node, and is useful for accessing the field via an interface.

func (*AddInstanceAddInstanceUserInstancesEdge) GetPinned

GetPinned returns AddInstanceAddInstanceUserInstancesEdge.Pinned, and is useful for accessing the field via an interface.

func (*AddInstanceAddInstanceUserInstancesEdge) GetRank

GetRank returns AddInstanceAddInstanceUserInstancesEdge.Rank, and is useful for accessing the field via an interface.

func (*AddInstanceAddInstanceUserInstancesEdge) MarshalJSON

func (v *AddInstanceAddInstanceUserInstancesEdge) MarshalJSON() ([]byte, error)

func (*AddInstanceAddInstanceUserInstancesEdge) UnmarshalJSON

func (v *AddInstanceAddInstanceUserInstancesEdge) UnmarshalJSON(b []byte) error

type AddInstanceResponse

type AddInstanceResponse struct {
	AddInstance AddInstanceAddInstanceUserInstancesEdge `json:"addInstance"`
}

AddInstanceResponse is returned by AddInstance on success.

func AddInstance

func AddInstance(
	ctx context.Context,
	client graphql.Client,
	input InstanceInput,
	channelsFirst int,
	channelsAfter string,
	likesFirst int,
	likesAfter string,
	authorsFirst int,
	authorsAfter string,
	authorsRoles []Role,
	messagesLast int,
	messagesBefore string,
) (*AddInstanceResponse, error)

func (*AddInstanceResponse) GetAddInstance

GetAddInstance returns AddInstanceResponse.AddInstance, and is useful for accessing the field via an interface.

type AddInviteAddInvite

type AddInviteAddInvite struct {
	InviteFragment `json:"-"`
}

AddInviteAddInvite includes the requested fields of the GraphQL type Invite.

func (*AddInviteAddInvite) GetAuthor

GetAuthor returns AddInviteAddInvite.Author, and is useful for accessing the field via an interface.

func (*AddInviteAddInvite) GetCode

func (v *AddInviteAddInvite) GetCode() string

GetCode returns AddInviteAddInvite.Code, and is useful for accessing the field via an interface.

func (*AddInviteAddInvite) GetCreatedAt

func (v *AddInviteAddInvite) GetCreatedAt() time.Time

GetCreatedAt returns AddInviteAddInvite.CreatedAt, and is useful for accessing the field via an interface.

func (*AddInviteAddInvite) GetExpiresAt

func (v *AddInviteAddInvite) GetExpiresAt() *time.Time

GetExpiresAt returns AddInviteAddInvite.ExpiresAt, and is useful for accessing the field via an interface.

func (*AddInviteAddInvite) GetId

func (v *AddInviteAddInvite) GetId() uuid.UUID

GetId returns AddInviteAddInvite.Id, and is useful for accessing the field via an interface.

func (*AddInviteAddInvite) GetInstanceId

func (v *AddInviteAddInvite) GetInstanceId() uuid.UUID

GetInstanceId returns AddInviteAddInvite.InstanceId, and is useful for accessing the field via an interface.

func (*AddInviteAddInvite) GetRedemptions

func (v *AddInviteAddInvite) GetRedemptions() *int

GetRedemptions returns AddInviteAddInvite.Redemptions, and is useful for accessing the field via an interface.

func (*AddInviteAddInvite) MarshalJSON

func (v *AddInviteAddInvite) MarshalJSON() ([]byte, error)

func (*AddInviteAddInvite) UnmarshalJSON

func (v *AddInviteAddInvite) UnmarshalJSON(b []byte) error

type AddInviteResponse

type AddInviteResponse struct {
	AddInvite AddInviteAddInvite `json:"addInvite"`
}

AddInviteResponse is returned by AddInvite on success.

func AddInvite

func AddInvite(
	ctx context.Context,
	client graphql.Client,
	input InviteInput,
) (*AddInviteResponse, error)

func (*AddInviteResponse) GetAddInvite

func (v *AddInviteResponse) GetAddInvite() AddInviteAddInvite

GetAddInvite returns AddInviteResponse.AddInvite, and is useful for accessing the field via an interface.

type AddLikeAddLikeInstanceLikesEdge

type AddLikeAddLikeInstanceLikesEdge struct {
	InstanceLikesEdgeFragment `json:"-"`
}

AddLikeAddLikeInstanceLikesEdge includes the requested fields of the GraphQL type InstanceLikesEdge.

func (*AddLikeAddLikeInstanceLikesEdge) GetCursor

func (v *AddLikeAddLikeInstanceLikesEdge) GetCursor() string

GetCursor returns AddLikeAddLikeInstanceLikesEdge.Cursor, and is useful for accessing the field via an interface.

func (*AddLikeAddLikeInstanceLikesEdge) GetLikedAt

func (v *AddLikeAddLikeInstanceLikesEdge) GetLikedAt() time.Time

GetLikedAt returns AddLikeAddLikeInstanceLikesEdge.LikedAt, and is useful for accessing the field via an interface.

func (*AddLikeAddLikeInstanceLikesEdge) GetNode

GetNode returns AddLikeAddLikeInstanceLikesEdge.Node, and is useful for accessing the field via an interface.

func (*AddLikeAddLikeInstanceLikesEdge) MarshalJSON

func (v *AddLikeAddLikeInstanceLikesEdge) MarshalJSON() ([]byte, error)

func (*AddLikeAddLikeInstanceLikesEdge) UnmarshalJSON

func (v *AddLikeAddLikeInstanceLikesEdge) UnmarshalJSON(b []byte) error

type AddLikeResponse

type AddLikeResponse struct {
	AddLike AddLikeAddLikeInstanceLikesEdge `json:"addLike"`
}

AddLikeResponse is returned by AddLike on success.

func AddLike

func AddLike(
	ctx context.Context,
	client graphql.Client,
	instanceId uuid.UUID,
) (*AddLikeResponse, error)

func (*AddLikeResponse) GetAddLike

GetAddLike returns AddLikeResponse.AddLike, and is useful for accessing the field via an interface.

type AddMessageAddMessageChannelMessagesEdge

type AddMessageAddMessageChannelMessagesEdge struct {
	ChannelMessagesEdgeFragment `json:"-"`
}

AddMessageAddMessageChannelMessagesEdge includes the requested fields of the GraphQL type ChannelMessagesEdge.

func (*AddMessageAddMessageChannelMessagesEdge) GetCursor

GetCursor returns AddMessageAddMessageChannelMessagesEdge.Cursor, and is useful for accessing the field via an interface.

func (*AddMessageAddMessageChannelMessagesEdge) GetNode

GetNode returns AddMessageAddMessageChannelMessagesEdge.Node, and is useful for accessing the field via an interface.

func (*AddMessageAddMessageChannelMessagesEdge) MarshalJSON

func (v *AddMessageAddMessageChannelMessagesEdge) MarshalJSON() ([]byte, error)

func (*AddMessageAddMessageChannelMessagesEdge) UnmarshalJSON

func (v *AddMessageAddMessageChannelMessagesEdge) UnmarshalJSON(b []byte) error

type AddMessageResponse

type AddMessageResponse struct {
	AddMessage AddMessageAddMessageChannelMessagesEdge `json:"addMessage"`
}

AddMessageResponse is returned by AddMessage on success.

func AddMessage

func AddMessage(
	ctx context.Context,
	client graphql.Client,
	input MessageInput,
) (*AddMessageResponse, error)

func (*AddMessageResponse) GetAddMessage

GetAddMessage returns AddMessageResponse.AddMessage, and is useful for accessing the field via an interface.

type AddRoleAddRoleAuthor

type AddRoleAddRoleAuthor struct {
	AuthorFragment `json:"-"`
}

AddRoleAddRoleAuthor includes the requested fields of the GraphQL type Author.

func (*AddRoleAddRoleAuthor) GetAvatar

func (v *AddRoleAddRoleAuthor) GetAvatar() string

GetAvatar returns AddRoleAddRoleAuthor.Avatar, and is useful for accessing the field via an interface.

func (*AddRoleAddRoleAuthor) GetBio

func (v *AddRoleAddRoleAuthor) GetBio() string

GetBio returns AddRoleAddRoleAuthor.Bio, and is useful for accessing the field via an interface.

func (*AddRoleAddRoleAuthor) GetCreatedAt

func (v *AddRoleAddRoleAuthor) GetCreatedAt() time.Time

GetCreatedAt returns AddRoleAddRoleAuthor.CreatedAt, and is useful for accessing the field via an interface.

func (*AddRoleAddRoleAuthor) GetId

func (v *AddRoleAddRoleAuthor) GetId() uuid.UUID

GetId returns AddRoleAddRoleAuthor.Id, and is useful for accessing the field via an interface.

func (*AddRoleAddRoleAuthor) GetInstanceId

func (v *AddRoleAddRoleAuthor) GetInstanceId() uuid.UUID

GetInstanceId returns AddRoleAddRoleAuthor.InstanceId, and is useful for accessing the field via an interface.

func (*AddRoleAddRoleAuthor) GetName

func (v *AddRoleAddRoleAuthor) GetName() string

GetName returns AddRoleAddRoleAuthor.Name, and is useful for accessing the field via an interface.

func (*AddRoleAddRoleAuthor) GetRoles

func (v *AddRoleAddRoleAuthor) GetRoles() []Role

GetRoles returns AddRoleAddRoleAuthor.Roles, and is useful for accessing the field via an interface.

func (*AddRoleAddRoleAuthor) GetUserId

func (v *AddRoleAddRoleAuthor) GetUserId() uuid.UUID

GetUserId returns AddRoleAddRoleAuthor.UserId, and is useful for accessing the field via an interface.

func (*AddRoleAddRoleAuthor) MarshalJSON

func (v *AddRoleAddRoleAuthor) MarshalJSON() ([]byte, error)

func (*AddRoleAddRoleAuthor) UnmarshalJSON

func (v *AddRoleAddRoleAuthor) UnmarshalJSON(b []byte) error

type AddRoleResponse

type AddRoleResponse struct {
	AddRole AddRoleAddRoleAuthor `json:"addRole"`
}

AddRoleResponse is returned by AddRole on success.

func AddRole

func AddRole(
	ctx context.Context,
	client graphql.Client,
	authorId uuid.UUID,
	role Role,
) (*AddRoleResponse, error)

func (*AddRoleResponse) GetAddRole

func (v *AddRoleResponse) GetAddRole() AddRoleAddRoleAuthor

GetAddRole returns AddRoleResponse.AddRole, and is useful for accessing the field via an interface.

type AuthorFragment

type AuthorFragment struct {
	Id         uuid.UUID `json:"id"`
	UserId     uuid.UUID `json:"userId"`
	InstanceId uuid.UUID `json:"instanceId"`
	Name       string    `json:"name"`
	Avatar     string    `json:"avatar"`
	Bio        string    `json:"bio"`
	Roles      []Role    `json:"roles"`
	CreatedAt  time.Time `json:"createdAt"`
}

AuthorFragment includes the GraphQL fields of Author requested by the fragment AuthorFragment.

func (*AuthorFragment) GetAvatar

func (v *AuthorFragment) GetAvatar() string

GetAvatar returns AuthorFragment.Avatar, and is useful for accessing the field via an interface.

func (*AuthorFragment) GetBio

func (v *AuthorFragment) GetBio() string

GetBio returns AuthorFragment.Bio, and is useful for accessing the field via an interface.

func (*AuthorFragment) GetCreatedAt

func (v *AuthorFragment) GetCreatedAt() time.Time

GetCreatedAt returns AuthorFragment.CreatedAt, and is useful for accessing the field via an interface.

func (*AuthorFragment) GetId

func (v *AuthorFragment) GetId() uuid.UUID

GetId returns AuthorFragment.Id, and is useful for accessing the field via an interface.

func (*AuthorFragment) GetInstanceId

func (v *AuthorFragment) GetInstanceId() uuid.UUID

GetInstanceId returns AuthorFragment.InstanceId, and is useful for accessing the field via an interface.

func (*AuthorFragment) GetName

func (v *AuthorFragment) GetName() string

GetName returns AuthorFragment.Name, and is useful for accessing the field via an interface.

func (*AuthorFragment) GetRoles

func (v *AuthorFragment) GetRoles() []Role

GetRoles returns AuthorFragment.Roles, and is useful for accessing the field via an interface.

func (*AuthorFragment) GetUserId

func (v *AuthorFragment) GetUserId() uuid.UUID

GetUserId returns AuthorFragment.UserId, and is useful for accessing the field via an interface.

type ChannelChannel

type ChannelChannel struct {
	ChannelFragment `json:"-"`
}

ChannelChannel includes the requested fields of the GraphQL type Channel.

func (*ChannelChannel) GetCreatedAt

func (v *ChannelChannel) GetCreatedAt() time.Time

GetCreatedAt returns ChannelChannel.CreatedAt, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetId

func (v *ChannelChannel) GetId() uuid.UUID

GetId returns ChannelChannel.Id, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetInstanceId

func (v *ChannelChannel) GetInstanceId() uuid.UUID

GetInstanceId returns ChannelChannel.InstanceId, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetIsCategory

func (v *ChannelChannel) GetIsCategory() bool

GetIsCategory returns ChannelChannel.IsCategory, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetIsComments

func (v *ChannelChannel) GetIsComments() bool

GetIsComments returns ChannelChannel.IsComments, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetLastMessageAddedAt

func (v *ChannelChannel) GetLastMessageAddedAt() *time.Time

GetLastMessageAddedAt returns ChannelChannel.LastMessageAddedAt, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetMessageCount

func (v *ChannelChannel) GetMessageCount() int

GetMessageCount returns ChannelChannel.MessageCount, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetMessagesConnection

GetMessagesConnection returns ChannelChannel.MessagesConnection, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetName

func (v *ChannelChannel) GetName() string

GetName returns ChannelChannel.Name, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetPublishers

func (v *ChannelChannel) GetPublishers() []Role

GetPublishers returns ChannelChannel.Publishers, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetRank

func (v *ChannelChannel) GetRank() string

GetRank returns ChannelChannel.Rank, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetReaders

func (v *ChannelChannel) GetReaders() []Role

GetReaders returns ChannelChannel.Readers, and is useful for accessing the field via an interface.

func (*ChannelChannel) GetUpdatedAt

func (v *ChannelChannel) GetUpdatedAt() time.Time

GetUpdatedAt returns ChannelChannel.UpdatedAt, and is useful for accessing the field via an interface.

func (*ChannelChannel) MarshalJSON

func (v *ChannelChannel) MarshalJSON() ([]byte, error)

func (*ChannelChannel) UnmarshalJSON

func (v *ChannelChannel) UnmarshalJSON(b []byte) error

type ChannelFragment

type ChannelFragment struct {
	Id                 uuid.UUID                                                  `json:"id"`
	Name               string                                                     `json:"name"`
	Rank               string                                                     `json:"rank"`
	InstanceId         uuid.UUID                                                  `json:"instanceId"`
	Readers            []Role                                                     `json:"readers"`
	Publishers         []Role                                                     `json:"publishers"`
	CreatedAt          time.Time                                                  `json:"createdAt"`
	UpdatedAt          time.Time                                                  `json:"updatedAt"`
	LastMessageAddedAt *time.Time                                                 `json:"lastMessageAddedAt"`
	MessageCount       int                                                        `json:"messageCount"`
	IsCategory         bool                                                       `json:"isCategory"`
	IsComments         bool                                                       `json:"isComments"`
	MessagesConnection ChannelFragmentMessagesConnectionChannelMessagesConnection `json:"messagesConnection"`
}

ChannelFragment includes the GraphQL fields of Channel requested by the fragment ChannelFragment.

func (*ChannelFragment) GetCreatedAt

func (v *ChannelFragment) GetCreatedAt() time.Time

GetCreatedAt returns ChannelFragment.CreatedAt, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetId

func (v *ChannelFragment) GetId() uuid.UUID

GetId returns ChannelFragment.Id, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetInstanceId

func (v *ChannelFragment) GetInstanceId() uuid.UUID

GetInstanceId returns ChannelFragment.InstanceId, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetIsCategory

func (v *ChannelFragment) GetIsCategory() bool

GetIsCategory returns ChannelFragment.IsCategory, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetIsComments

func (v *ChannelFragment) GetIsComments() bool

GetIsComments returns ChannelFragment.IsComments, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetLastMessageAddedAt

func (v *ChannelFragment) GetLastMessageAddedAt() *time.Time

GetLastMessageAddedAt returns ChannelFragment.LastMessageAddedAt, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetMessageCount

func (v *ChannelFragment) GetMessageCount() int

GetMessageCount returns ChannelFragment.MessageCount, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetMessagesConnection

GetMessagesConnection returns ChannelFragment.MessagesConnection, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetName

func (v *ChannelFragment) GetName() string

GetName returns ChannelFragment.Name, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetPublishers

func (v *ChannelFragment) GetPublishers() []Role

GetPublishers returns ChannelFragment.Publishers, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetRank

func (v *ChannelFragment) GetRank() string

GetRank returns ChannelFragment.Rank, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetReaders

func (v *ChannelFragment) GetReaders() []Role

GetReaders returns ChannelFragment.Readers, and is useful for accessing the field via an interface.

func (*ChannelFragment) GetUpdatedAt

func (v *ChannelFragment) GetUpdatedAt() time.Time

GetUpdatedAt returns ChannelFragment.UpdatedAt, and is useful for accessing the field via an interface.

type ChannelFragmentMessagesConnectionChannelMessagesConnection

type ChannelFragmentMessagesConnectionChannelMessagesConnection struct {
	Edges    []ChannelFragmentMessagesConnectionChannelMessagesConnectionEdgesChannelMessagesEdge `json:"edges"`
	PageInfo ChannelFragmentMessagesConnectionChannelMessagesConnectionPageInfo                   `json:"pageInfo"`
}

ChannelFragmentMessagesConnectionChannelMessagesConnection includes the requested fields of the GraphQL type ChannelMessagesConnection.

func (*ChannelFragmentMessagesConnectionChannelMessagesConnection) GetEdges

GetEdges returns ChannelFragmentMessagesConnectionChannelMessagesConnection.Edges, and is useful for accessing the field via an interface.

func (*ChannelFragmentMessagesConnectionChannelMessagesConnection) GetPageInfo

GetPageInfo returns ChannelFragmentMessagesConnectionChannelMessagesConnection.PageInfo, and is useful for accessing the field via an interface.

type ChannelFragmentMessagesConnectionChannelMessagesConnectionEdgesChannelMessagesEdge

type ChannelFragmentMessagesConnectionChannelMessagesConnectionEdgesChannelMessagesEdge struct {
	ChannelMessagesEdgeFragment `json:"-"`
}

ChannelFragmentMessagesConnectionChannelMessagesConnectionEdgesChannelMessagesEdge includes the requested fields of the GraphQL type ChannelMessagesEdge.

func (*ChannelFragmentMessagesConnectionChannelMessagesConnectionEdgesChannelMessagesEdge) GetCursor

GetCursor returns ChannelFragmentMessagesConnectionChannelMessagesConnectionEdgesChannelMessagesEdge.Cursor, and is useful for accessing the field via an interface.

func (*ChannelFragmentMessagesConnectionChannelMessagesConnectionEdgesChannelMessagesEdge) GetNode

GetNode returns ChannelFragmentMessagesConnectionChannelMessagesConnectionEdgesChannelMessagesEdge.Node, and is useful for accessing the field via an interface.

func (*ChannelFragmentMessagesConnectionChannelMessagesConnectionEdgesChannelMessagesEdge) MarshalJSON

func (*ChannelFragmentMessagesConnectionChannelMessagesConnectionEdgesChannelMessagesEdge) UnmarshalJSON

type ChannelFragmentMessagesConnectionChannelMessagesConnectionPageInfo

type ChannelFragmentMessagesConnectionChannelMessagesConnectionPageInfo struct {
	PageInfoFragment `json:"-"`
}

ChannelFragmentMessagesConnectionChannelMessagesConnectionPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*ChannelFragmentMessagesConnectionChannelMessagesConnectionPageInfo) GetHasNextPage

GetHasNextPage returns ChannelFragmentMessagesConnectionChannelMessagesConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

func (*ChannelFragmentMessagesConnectionChannelMessagesConnectionPageInfo) GetHasPreviousPage

GetHasPreviousPage returns ChannelFragmentMessagesConnectionChannelMessagesConnectionPageInfo.HasPreviousPage, and is useful for accessing the field via an interface.

func (*ChannelFragmentMessagesConnectionChannelMessagesConnectionPageInfo) MarshalJSON

func (*ChannelFragmentMessagesConnectionChannelMessagesConnectionPageInfo) UnmarshalJSON

type ChannelInput

type ChannelInput struct {
	Name       string    `json:"name"`
	InstanceId uuid.UUID `json:"instanceId"`
	Publishers []Role    `json:"publishers"`
	Readers    []Role    `json:"readers"`
	IsCategory bool      `json:"isCategory"`
}

func (*ChannelInput) GetInstanceId

func (v *ChannelInput) GetInstanceId() uuid.UUID

GetInstanceId returns ChannelInput.InstanceId, and is useful for accessing the field via an interface.

func (*ChannelInput) GetIsCategory

func (v *ChannelInput) GetIsCategory() bool

GetIsCategory returns ChannelInput.IsCategory, and is useful for accessing the field via an interface.

func (*ChannelInput) GetName

func (v *ChannelInput) GetName() string

GetName returns ChannelInput.Name, and is useful for accessing the field via an interface.

func (*ChannelInput) GetPublishers

func (v *ChannelInput) GetPublishers() []Role

GetPublishers returns ChannelInput.Publishers, and is useful for accessing the field via an interface.

func (*ChannelInput) GetReaders

func (v *ChannelInput) GetReaders() []Role

GetReaders returns ChannelInput.Readers, and is useful for accessing the field via an interface.

type ChannelMessagesEdgeFragment

type ChannelMessagesEdgeFragment struct {
	Cursor string                                 `json:"cursor"`
	Node   ChannelMessagesEdgeFragmentNodeMessage `json:"node"`
}

ChannelMessagesEdgeFragment includes the GraphQL fields of ChannelMessagesEdge requested by the fragment ChannelMessagesEdgeFragment.

func (*ChannelMessagesEdgeFragment) GetCursor

func (v *ChannelMessagesEdgeFragment) GetCursor() string

GetCursor returns ChannelMessagesEdgeFragment.Cursor, and is useful for accessing the field via an interface.

func (*ChannelMessagesEdgeFragment) GetNode

GetNode returns ChannelMessagesEdgeFragment.Node, and is useful for accessing the field via an interface.

type ChannelMessagesEdgeFragmentNodeMessage

type ChannelMessagesEdgeFragmentNodeMessage struct {
	MessageFragment `json:"-"`
}

ChannelMessagesEdgeFragmentNodeMessage includes the requested fields of the GraphQL type Message.

func (*ChannelMessagesEdgeFragmentNodeMessage) GetAuthor

GetAuthor returns ChannelMessagesEdgeFragmentNodeMessage.Author, and is useful for accessing the field via an interface.

func (*ChannelMessagesEdgeFragmentNodeMessage) GetChannelId

GetChannelId returns ChannelMessagesEdgeFragmentNodeMessage.ChannelId, and is useful for accessing the field via an interface.

func (*ChannelMessagesEdgeFragmentNodeMessage) GetCreatedAt

GetCreatedAt returns ChannelMessagesEdgeFragmentNodeMessage.CreatedAt, and is useful for accessing the field via an interface.

func (*ChannelMessagesEdgeFragmentNodeMessage) GetId

GetId returns ChannelMessagesEdgeFragmentNodeMessage.Id, and is useful for accessing the field via an interface.

func (*ChannelMessagesEdgeFragmentNodeMessage) GetImageUrls added in v0.0.4

func (v *ChannelMessagesEdgeFragmentNodeMessage) GetImageUrls() []string

GetImageUrls returns ChannelMessagesEdgeFragmentNodeMessage.ImageUrls, and is useful for accessing the field via an interface.

func (*ChannelMessagesEdgeFragmentNodeMessage) GetRepliedMessage added in v0.0.4

GetRepliedMessage returns ChannelMessagesEdgeFragmentNodeMessage.RepliedMessage, and is useful for accessing the field via an interface.

func (*ChannelMessagesEdgeFragmentNodeMessage) GetText

GetText returns ChannelMessagesEdgeFragmentNodeMessage.Text, and is useful for accessing the field via an interface.

func (*ChannelMessagesEdgeFragmentNodeMessage) MarshalJSON

func (v *ChannelMessagesEdgeFragmentNodeMessage) MarshalJSON() ([]byte, error)

func (*ChannelMessagesEdgeFragmentNodeMessage) UnmarshalJSON

func (v *ChannelMessagesEdgeFragmentNodeMessage) UnmarshalJSON(b []byte) error

type ChannelReorderInput

type ChannelReorderInput struct {
	PrevChannelId *uuid.UUID `json:"prevChannelId"`
}

func (*ChannelReorderInput) GetPrevChannelId

func (v *ChannelReorderInput) GetPrevChannelId() *uuid.UUID

GetPrevChannelId returns ChannelReorderInput.PrevChannelId, and is useful for accessing the field via an interface.

type ChannelResponse

type ChannelResponse struct {
	Channel ChannelChannel `json:"channel"`
}

ChannelResponse is returned by Channel on success.

func Channel

func Channel(
	ctx context.Context,
	client graphql.Client,
	id uuid.UUID,
	messagesLast int,
	messagesBefore string,
) (*ChannelResponse, error)

func (*ChannelResponse) GetChannel

func (v *ChannelResponse) GetChannel() ChannelChannel

GetChannel returns ChannelResponse.Channel, and is useful for accessing the field via an interface.

type CheckInviteCheckInvite

type CheckInviteCheckInvite struct {
	Instance       *CheckInviteCheckInviteInstance `json:"instance"`
	InviteFragment `json:"-"`
}

CheckInviteCheckInvite includes the requested fields of the GraphQL type Invite.

func (*CheckInviteCheckInvite) GetAuthor

GetAuthor returns CheckInviteCheckInvite.Author, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInvite) GetCode

func (v *CheckInviteCheckInvite) GetCode() string

GetCode returns CheckInviteCheckInvite.Code, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInvite) GetCreatedAt

func (v *CheckInviteCheckInvite) GetCreatedAt() time.Time

GetCreatedAt returns CheckInviteCheckInvite.CreatedAt, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInvite) GetExpiresAt

func (v *CheckInviteCheckInvite) GetExpiresAt() *time.Time

GetExpiresAt returns CheckInviteCheckInvite.ExpiresAt, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInvite) GetId

func (v *CheckInviteCheckInvite) GetId() uuid.UUID

GetId returns CheckInviteCheckInvite.Id, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInvite) GetInstance

GetInstance returns CheckInviteCheckInvite.Instance, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInvite) GetInstanceId

func (v *CheckInviteCheckInvite) GetInstanceId() uuid.UUID

GetInstanceId returns CheckInviteCheckInvite.InstanceId, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInvite) GetRedemptions

func (v *CheckInviteCheckInvite) GetRedemptions() *int

GetRedemptions returns CheckInviteCheckInvite.Redemptions, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInvite) MarshalJSON

func (v *CheckInviteCheckInvite) MarshalJSON() ([]byte, error)

func (*CheckInviteCheckInvite) UnmarshalJSON

func (v *CheckInviteCheckInvite) UnmarshalJSON(b []byte) error

type CheckInviteCheckInviteInstance

type CheckInviteCheckInviteInstance struct {
	InstanceFragment `json:"-"`
}

CheckInviteCheckInviteInstance includes the requested fields of the GraphQL type Instance.

func (*CheckInviteCheckInviteInstance) GetAuthor

GetAuthor returns CheckInviteCheckInviteInstance.Author, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetAuthorsConnection

GetAuthorsConnection returns CheckInviteCheckInviteInstance.AuthorsConnection, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetChannelsConnection

GetChannelsConnection returns CheckInviteCheckInviteInstance.ChannelsConnection, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetCommentsCount

func (v *CheckInviteCheckInviteInstance) GetCommentsCount() int

GetCommentsCount returns CheckInviteCheckInviteInstance.CommentsCount, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetCreatedAt

func (v *CheckInviteCheckInviteInstance) GetCreatedAt() time.Time

GetCreatedAt returns CheckInviteCheckInviteInstance.CreatedAt, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetDescription

func (v *CheckInviteCheckInviteInstance) GetDescription() string

GetDescription returns CheckInviteCheckInviteInstance.Description, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetIcon

GetIcon returns CheckInviteCheckInviteInstance.Icon, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetId

GetId returns CheckInviteCheckInviteInstance.Id, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetLikesConnection

GetLikesConnection returns CheckInviteCheckInviteInstance.LikesConnection, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetLikesCount

func (v *CheckInviteCheckInviteInstance) GetLikesCount() int

GetLikesCount returns CheckInviteCheckInviteInstance.LikesCount, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetName

GetName returns CheckInviteCheckInviteInstance.Name, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetReadAccess

func (v *CheckInviteCheckInviteInstance) GetReadAccess() Access

GetReadAccess returns CheckInviteCheckInviteInstance.ReadAccess, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetShowAuthor

func (v *CheckInviteCheckInviteInstance) GetShowAuthor() bool

GetShowAuthor returns CheckInviteCheckInviteInstance.ShowAuthor, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetShowChat

func (v *CheckInviteCheckInviteInstance) GetShowChat() bool

GetShowChat returns CheckInviteCheckInviteInstance.ShowChat, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetShowComments

func (v *CheckInviteCheckInviteInstance) GetShowComments() bool

GetShowComments returns CheckInviteCheckInviteInstance.ShowComments, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) GetShowLikes

func (v *CheckInviteCheckInviteInstance) GetShowLikes() bool

GetShowLikes returns CheckInviteCheckInviteInstance.ShowLikes, and is useful for accessing the field via an interface.

func (*CheckInviteCheckInviteInstance) MarshalJSON

func (v *CheckInviteCheckInviteInstance) MarshalJSON() ([]byte, error)

func (*CheckInviteCheckInviteInstance) UnmarshalJSON

func (v *CheckInviteCheckInviteInstance) UnmarshalJSON(b []byte) error

type CheckInviteResponse

type CheckInviteResponse struct {
	CheckInvite CheckInviteCheckInvite `json:"checkInvite"`
}

CheckInviteResponse is returned by CheckInvite on success.

func CheckInvite

func CheckInvite(
	ctx context.Context,
	client graphql.Client,
	code string,
	channelsFirst int,
	channelsAfter string,
	likesFirst int,
	likesAfter string,
	authorsFirst int,
	authorsAfter string,
	authorsRoles []Role,
	messagesLast int,
	messagesBefore string,
) (*CheckInviteResponse, error)

func (*CheckInviteResponse) GetCheckInvite

func (v *CheckInviteResponse) GetCheckInvite() CheckInviteCheckInvite

GetCheckInvite returns CheckInviteResponse.CheckInvite, and is useful for accessing the field via an interface.

type InstanceAuthorsEdgeFragment

type InstanceAuthorsEdgeFragment struct {
	Cursor string                                `json:"cursor"`
	Node   InstanceAuthorsEdgeFragmentNodeAuthor `json:"node"`
}

InstanceAuthorsEdgeFragment includes the GraphQL fields of InstanceAuthorsEdge requested by the fragment InstanceAuthorsEdgeFragment.

func (*InstanceAuthorsEdgeFragment) GetCursor

func (v *InstanceAuthorsEdgeFragment) GetCursor() string

GetCursor returns InstanceAuthorsEdgeFragment.Cursor, and is useful for accessing the field via an interface.

func (*InstanceAuthorsEdgeFragment) GetNode

GetNode returns InstanceAuthorsEdgeFragment.Node, and is useful for accessing the field via an interface.

type InstanceAuthorsEdgeFragmentNodeAuthor

type InstanceAuthorsEdgeFragmentNodeAuthor struct {
	AuthorFragment `json:"-"`
}

InstanceAuthorsEdgeFragmentNodeAuthor includes the requested fields of the GraphQL type Author.

func (*InstanceAuthorsEdgeFragmentNodeAuthor) GetAvatar

GetAvatar returns InstanceAuthorsEdgeFragmentNodeAuthor.Avatar, and is useful for accessing the field via an interface.

func (*InstanceAuthorsEdgeFragmentNodeAuthor) GetBio

GetBio returns InstanceAuthorsEdgeFragmentNodeAuthor.Bio, and is useful for accessing the field via an interface.

func (*InstanceAuthorsEdgeFragmentNodeAuthor) GetCreatedAt

GetCreatedAt returns InstanceAuthorsEdgeFragmentNodeAuthor.CreatedAt, and is useful for accessing the field via an interface.

func (*InstanceAuthorsEdgeFragmentNodeAuthor) GetId

GetId returns InstanceAuthorsEdgeFragmentNodeAuthor.Id, and is useful for accessing the field via an interface.

func (*InstanceAuthorsEdgeFragmentNodeAuthor) GetInstanceId

func (v *InstanceAuthorsEdgeFragmentNodeAuthor) GetInstanceId() uuid.UUID

GetInstanceId returns InstanceAuthorsEdgeFragmentNodeAuthor.InstanceId, and is useful for accessing the field via an interface.

func (*InstanceAuthorsEdgeFragmentNodeAuthor) GetName

GetName returns InstanceAuthorsEdgeFragmentNodeAuthor.Name, and is useful for accessing the field via an interface.

func (*InstanceAuthorsEdgeFragmentNodeAuthor) GetRoles

GetRoles returns InstanceAuthorsEdgeFragmentNodeAuthor.Roles, and is useful for accessing the field via an interface.

func (*InstanceAuthorsEdgeFragmentNodeAuthor) GetUserId

GetUserId returns InstanceAuthorsEdgeFragmentNodeAuthor.UserId, and is useful for accessing the field via an interface.

func (*InstanceAuthorsEdgeFragmentNodeAuthor) MarshalJSON

func (v *InstanceAuthorsEdgeFragmentNodeAuthor) MarshalJSON() ([]byte, error)

func (*InstanceAuthorsEdgeFragmentNodeAuthor) UnmarshalJSON

func (v *InstanceAuthorsEdgeFragmentNodeAuthor) UnmarshalJSON(b []byte) error

type InstanceChannelsEdgeFragment

type InstanceChannelsEdgeFragment struct {
	Cursor string                                  `json:"cursor"`
	Node   InstanceChannelsEdgeFragmentNodeChannel `json:"node"`
}

InstanceChannelsEdgeFragment includes the GraphQL fields of InstanceChannelsEdge requested by the fragment InstanceChannelsEdgeFragment.

func (*InstanceChannelsEdgeFragment) GetCursor

func (v *InstanceChannelsEdgeFragment) GetCursor() string

GetCursor returns InstanceChannelsEdgeFragment.Cursor, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragment) GetNode

GetNode returns InstanceChannelsEdgeFragment.Node, and is useful for accessing the field via an interface.

type InstanceChannelsEdgeFragmentNodeChannel

type InstanceChannelsEdgeFragmentNodeChannel struct {
	ChannelFragment `json:"-"`
}

InstanceChannelsEdgeFragmentNodeChannel includes the requested fields of the GraphQL type Channel.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetCreatedAt

GetCreatedAt returns InstanceChannelsEdgeFragmentNodeChannel.CreatedAt, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetId

GetId returns InstanceChannelsEdgeFragmentNodeChannel.Id, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetInstanceId

GetInstanceId returns InstanceChannelsEdgeFragmentNodeChannel.InstanceId, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetIsCategory

func (v *InstanceChannelsEdgeFragmentNodeChannel) GetIsCategory() bool

GetIsCategory returns InstanceChannelsEdgeFragmentNodeChannel.IsCategory, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetIsComments

func (v *InstanceChannelsEdgeFragmentNodeChannel) GetIsComments() bool

GetIsComments returns InstanceChannelsEdgeFragmentNodeChannel.IsComments, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetLastMessageAddedAt

func (v *InstanceChannelsEdgeFragmentNodeChannel) GetLastMessageAddedAt() *time.Time

GetLastMessageAddedAt returns InstanceChannelsEdgeFragmentNodeChannel.LastMessageAddedAt, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetMessageCount

func (v *InstanceChannelsEdgeFragmentNodeChannel) GetMessageCount() int

GetMessageCount returns InstanceChannelsEdgeFragmentNodeChannel.MessageCount, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetMessagesConnection

GetMessagesConnection returns InstanceChannelsEdgeFragmentNodeChannel.MessagesConnection, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetName

GetName returns InstanceChannelsEdgeFragmentNodeChannel.Name, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetPublishers

func (v *InstanceChannelsEdgeFragmentNodeChannel) GetPublishers() []Role

GetPublishers returns InstanceChannelsEdgeFragmentNodeChannel.Publishers, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetRank

GetRank returns InstanceChannelsEdgeFragmentNodeChannel.Rank, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetReaders

GetReaders returns InstanceChannelsEdgeFragmentNodeChannel.Readers, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) GetUpdatedAt

GetUpdatedAt returns InstanceChannelsEdgeFragmentNodeChannel.UpdatedAt, and is useful for accessing the field via an interface.

func (*InstanceChannelsEdgeFragmentNodeChannel) MarshalJSON

func (v *InstanceChannelsEdgeFragmentNodeChannel) MarshalJSON() ([]byte, error)

func (*InstanceChannelsEdgeFragmentNodeChannel) UnmarshalJSON

func (v *InstanceChannelsEdgeFragmentNodeChannel) UnmarshalJSON(b []byte) error

type InstanceFragment

type InstanceFragment struct {
	Id                 uuid.UUID                                                    `json:"id"`
	Name               string                                                       `json:"name"`
	Author             InstanceFragmentAuthor                                       `json:"author"`
	ReadAccess         Access                                                       `json:"readAccess"`
	Icon               string                                                       `json:"icon"`
	CreatedAt          time.Time                                                    `json:"createdAt"`
	Description        string                                                       `json:"description"`
	ShowAuthor         bool                                                         `json:"showAuthor"`
	ShowChat           bool                                                         `json:"showChat"`
	ShowLikes          bool                                                         `json:"showLikes"`
	ShowComments       bool                                                         `json:"showComments"`
	LikesCount         int                                                          `json:"likesCount"`
	CommentsCount      int                                                          `json:"commentsCount"`
	LikesConnection    InstanceFragmentLikesConnectionInstanceLikesConnection       `json:"likesConnection"`
	ChannelsConnection InstanceFragmentChannelsConnectionInstanceChannelsConnection `json:"channelsConnection"`
	AuthorsConnection  InstanceFragmentAuthorsConnectionInstanceAuthorsConnection   `json:"authorsConnection"`
}

InstanceFragment includes the GraphQL fields of Instance requested by the fragment InstanceFragment.

func (*InstanceFragment) GetAuthor

GetAuthor returns InstanceFragment.Author, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetAuthorsConnection

GetAuthorsConnection returns InstanceFragment.AuthorsConnection, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetChannelsConnection

GetChannelsConnection returns InstanceFragment.ChannelsConnection, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetCommentsCount

func (v *InstanceFragment) GetCommentsCount() int

GetCommentsCount returns InstanceFragment.CommentsCount, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetCreatedAt

func (v *InstanceFragment) GetCreatedAt() time.Time

GetCreatedAt returns InstanceFragment.CreatedAt, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetDescription

func (v *InstanceFragment) GetDescription() string

GetDescription returns InstanceFragment.Description, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetIcon

func (v *InstanceFragment) GetIcon() string

GetIcon returns InstanceFragment.Icon, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetId

func (v *InstanceFragment) GetId() uuid.UUID

GetId returns InstanceFragment.Id, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetLikesConnection

GetLikesConnection returns InstanceFragment.LikesConnection, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetLikesCount

func (v *InstanceFragment) GetLikesCount() int

GetLikesCount returns InstanceFragment.LikesCount, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetName

func (v *InstanceFragment) GetName() string

GetName returns InstanceFragment.Name, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetReadAccess

func (v *InstanceFragment) GetReadAccess() Access

GetReadAccess returns InstanceFragment.ReadAccess, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetShowAuthor

func (v *InstanceFragment) GetShowAuthor() bool

GetShowAuthor returns InstanceFragment.ShowAuthor, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetShowChat

func (v *InstanceFragment) GetShowChat() bool

GetShowChat returns InstanceFragment.ShowChat, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetShowComments

func (v *InstanceFragment) GetShowComments() bool

GetShowComments returns InstanceFragment.ShowComments, and is useful for accessing the field via an interface.

func (*InstanceFragment) GetShowLikes

func (v *InstanceFragment) GetShowLikes() bool

GetShowLikes returns InstanceFragment.ShowLikes, and is useful for accessing the field via an interface.

type InstanceFragmentAuthor

type InstanceFragmentAuthor struct {
	AuthorFragment `json:"-"`
}

InstanceFragmentAuthor includes the requested fields of the GraphQL type Author.

func (*InstanceFragmentAuthor) GetAvatar

func (v *InstanceFragmentAuthor) GetAvatar() string

GetAvatar returns InstanceFragmentAuthor.Avatar, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthor) GetBio

func (v *InstanceFragmentAuthor) GetBio() string

GetBio returns InstanceFragmentAuthor.Bio, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthor) GetCreatedAt

func (v *InstanceFragmentAuthor) GetCreatedAt() time.Time

GetCreatedAt returns InstanceFragmentAuthor.CreatedAt, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthor) GetId

func (v *InstanceFragmentAuthor) GetId() uuid.UUID

GetId returns InstanceFragmentAuthor.Id, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthor) GetInstanceId

func (v *InstanceFragmentAuthor) GetInstanceId() uuid.UUID

GetInstanceId returns InstanceFragmentAuthor.InstanceId, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthor) GetName

func (v *InstanceFragmentAuthor) GetName() string

GetName returns InstanceFragmentAuthor.Name, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthor) GetRoles

func (v *InstanceFragmentAuthor) GetRoles() []Role

GetRoles returns InstanceFragmentAuthor.Roles, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthor) GetUserId

func (v *InstanceFragmentAuthor) GetUserId() uuid.UUID

GetUserId returns InstanceFragmentAuthor.UserId, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthor) MarshalJSON

func (v *InstanceFragmentAuthor) MarshalJSON() ([]byte, error)

func (*InstanceFragmentAuthor) UnmarshalJSON

func (v *InstanceFragmentAuthor) UnmarshalJSON(b []byte) error

type InstanceFragmentAuthorsConnectionInstanceAuthorsConnection

type InstanceFragmentAuthorsConnectionInstanceAuthorsConnection struct {
	Edges    []InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionEdgesInstanceAuthorsEdge `json:"edges"`
	PageInfo InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionPageInfo                   `json:"pageInfo"`
}

InstanceFragmentAuthorsConnectionInstanceAuthorsConnection includes the requested fields of the GraphQL type InstanceAuthorsConnection.

func (*InstanceFragmentAuthorsConnectionInstanceAuthorsConnection) GetEdges

GetEdges returns InstanceFragmentAuthorsConnectionInstanceAuthorsConnection.Edges, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthorsConnectionInstanceAuthorsConnection) GetPageInfo

GetPageInfo returns InstanceFragmentAuthorsConnectionInstanceAuthorsConnection.PageInfo, and is useful for accessing the field via an interface.

type InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionEdgesInstanceAuthorsEdge

type InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionEdgesInstanceAuthorsEdge struct {
	InstanceAuthorsEdgeFragment `json:"-"`
}

InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionEdgesInstanceAuthorsEdge includes the requested fields of the GraphQL type InstanceAuthorsEdge.

func (*InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionEdgesInstanceAuthorsEdge) GetCursor

GetCursor returns InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionEdgesInstanceAuthorsEdge.Cursor, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionEdgesInstanceAuthorsEdge) GetNode

GetNode returns InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionEdgesInstanceAuthorsEdge.Node, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionEdgesInstanceAuthorsEdge) MarshalJSON

func (*InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionEdgesInstanceAuthorsEdge) UnmarshalJSON

type InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionPageInfo

type InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionPageInfo struct {
	PageInfoFragment `json:"-"`
}

InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionPageInfo) GetHasNextPage

GetHasNextPage returns InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionPageInfo) GetHasPreviousPage

GetHasPreviousPage returns InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionPageInfo.HasPreviousPage, and is useful for accessing the field via an interface.

func (*InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionPageInfo) MarshalJSON

func (*InstanceFragmentAuthorsConnectionInstanceAuthorsConnectionPageInfo) UnmarshalJSON

type InstanceFragmentChannelsConnectionInstanceChannelsConnection

type InstanceFragmentChannelsConnectionInstanceChannelsConnection struct {
	Edges    []InstanceFragmentChannelsConnectionInstanceChannelsConnectionEdgesInstanceChannelsEdge `json:"edges"`
	PageInfo InstanceFragmentChannelsConnectionInstanceChannelsConnectionPageInfo                    `json:"pageInfo"`
}

InstanceFragmentChannelsConnectionInstanceChannelsConnection includes the requested fields of the GraphQL type InstanceChannelsConnection.

func (*InstanceFragmentChannelsConnectionInstanceChannelsConnection) GetEdges

GetEdges returns InstanceFragmentChannelsConnectionInstanceChannelsConnection.Edges, and is useful for accessing the field via an interface.

func (*InstanceFragmentChannelsConnectionInstanceChannelsConnection) GetPageInfo

GetPageInfo returns InstanceFragmentChannelsConnectionInstanceChannelsConnection.PageInfo, and is useful for accessing the field via an interface.

type InstanceFragmentChannelsConnectionInstanceChannelsConnectionEdgesInstanceChannelsEdge

type InstanceFragmentChannelsConnectionInstanceChannelsConnectionEdgesInstanceChannelsEdge struct {
	InstanceChannelsEdgeFragment `json:"-"`
}

InstanceFragmentChannelsConnectionInstanceChannelsConnectionEdgesInstanceChannelsEdge includes the requested fields of the GraphQL type InstanceChannelsEdge.

func (*InstanceFragmentChannelsConnectionInstanceChannelsConnectionEdgesInstanceChannelsEdge) GetCursor

GetCursor returns InstanceFragmentChannelsConnectionInstanceChannelsConnectionEdgesInstanceChannelsEdge.Cursor, and is useful for accessing the field via an interface.

func (*InstanceFragmentChannelsConnectionInstanceChannelsConnectionEdgesInstanceChannelsEdge) GetNode

GetNode returns InstanceFragmentChannelsConnectionInstanceChannelsConnectionEdgesInstanceChannelsEdge.Node, and is useful for accessing the field via an interface.

func (*InstanceFragmentChannelsConnectionInstanceChannelsConnectionEdgesInstanceChannelsEdge) MarshalJSON

func (*InstanceFragmentChannelsConnectionInstanceChannelsConnectionEdgesInstanceChannelsEdge) UnmarshalJSON

type InstanceFragmentChannelsConnectionInstanceChannelsConnectionPageInfo

type InstanceFragmentChannelsConnectionInstanceChannelsConnectionPageInfo struct {
	PageInfoFragment `json:"-"`
}

InstanceFragmentChannelsConnectionInstanceChannelsConnectionPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*InstanceFragmentChannelsConnectionInstanceChannelsConnectionPageInfo) GetHasNextPage

GetHasNextPage returns InstanceFragmentChannelsConnectionInstanceChannelsConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

func (*InstanceFragmentChannelsConnectionInstanceChannelsConnectionPageInfo) GetHasPreviousPage

GetHasPreviousPage returns InstanceFragmentChannelsConnectionInstanceChannelsConnectionPageInfo.HasPreviousPage, and is useful for accessing the field via an interface.

func (*InstanceFragmentChannelsConnectionInstanceChannelsConnectionPageInfo) MarshalJSON

func (*InstanceFragmentChannelsConnectionInstanceChannelsConnectionPageInfo) UnmarshalJSON

type InstanceFragmentLikesConnectionInstanceLikesConnection

type InstanceFragmentLikesConnectionInstanceLikesConnection struct {
	Edges    []InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge `json:"edges"`
	PageInfo InstanceFragmentLikesConnectionInstanceLikesConnectionPageInfo                 `json:"pageInfo"`
}

InstanceFragmentLikesConnectionInstanceLikesConnection includes the requested fields of the GraphQL type InstanceLikesConnection.

func (*InstanceFragmentLikesConnectionInstanceLikesConnection) GetEdges

GetEdges returns InstanceFragmentLikesConnectionInstanceLikesConnection.Edges, and is useful for accessing the field via an interface.

func (*InstanceFragmentLikesConnectionInstanceLikesConnection) GetPageInfo

GetPageInfo returns InstanceFragmentLikesConnectionInstanceLikesConnection.PageInfo, and is useful for accessing the field via an interface.

type InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge

type InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge struct {
	InstanceLikesEdgeFragment `json:"-"`
}

InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge includes the requested fields of the GraphQL type InstanceLikesEdge.

func (*InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge) GetCursor

GetCursor returns InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge.Cursor, and is useful for accessing the field via an interface.

func (*InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge) GetLikedAt

GetLikedAt returns InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge.LikedAt, and is useful for accessing the field via an interface.

func (*InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge) GetNode

GetNode returns InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge.Node, and is useful for accessing the field via an interface.

func (*InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge) MarshalJSON

func (*InstanceFragmentLikesConnectionInstanceLikesConnectionEdgesInstanceLikesEdge) UnmarshalJSON

type InstanceFragmentLikesConnectionInstanceLikesConnectionPageInfo

type InstanceFragmentLikesConnectionInstanceLikesConnectionPageInfo struct {
	PageInfoFragment `json:"-"`
}

InstanceFragmentLikesConnectionInstanceLikesConnectionPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*InstanceFragmentLikesConnectionInstanceLikesConnectionPageInfo) GetHasNextPage

GetHasNextPage returns InstanceFragmentLikesConnectionInstanceLikesConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

func (*InstanceFragmentLikesConnectionInstanceLikesConnectionPageInfo) GetHasPreviousPage

GetHasPreviousPage returns InstanceFragmentLikesConnectionInstanceLikesConnectionPageInfo.HasPreviousPage, and is useful for accessing the field via an interface.

func (*InstanceFragmentLikesConnectionInstanceLikesConnectionPageInfo) MarshalJSON

func (*InstanceFragmentLikesConnectionInstanceLikesConnectionPageInfo) UnmarshalJSON

type InstanceInput

type InstanceInput struct {
	Id           *uuid.UUID `json:"id"`
	Name         string     `json:"name"`
	ReadAccess   Access     `json:"readAccess"`
	Icon         string     `json:"icon"`
	Description  string     `json:"description"`
	ShowAuthor   bool       `json:"showAuthor"`
	ShowChat     bool       `json:"showChat"`
	ShowComments bool       `json:"showComments"`
	ShowLikes    bool       `json:"showLikes"`
}

func (*InstanceInput) GetDescription

func (v *InstanceInput) GetDescription() string

GetDescription returns InstanceInput.Description, and is useful for accessing the field via an interface.

func (*InstanceInput) GetIcon

func (v *InstanceInput) GetIcon() string

GetIcon returns InstanceInput.Icon, and is useful for accessing the field via an interface.

func (*InstanceInput) GetId

func (v *InstanceInput) GetId() *uuid.UUID

GetId returns InstanceInput.Id, and is useful for accessing the field via an interface.

func (*InstanceInput) GetName

func (v *InstanceInput) GetName() string

GetName returns InstanceInput.Name, and is useful for accessing the field via an interface.

func (*InstanceInput) GetReadAccess

func (v *InstanceInput) GetReadAccess() Access

GetReadAccess returns InstanceInput.ReadAccess, and is useful for accessing the field via an interface.

func (*InstanceInput) GetShowAuthor

func (v *InstanceInput) GetShowAuthor() bool

GetShowAuthor returns InstanceInput.ShowAuthor, and is useful for accessing the field via an interface.

func (*InstanceInput) GetShowChat

func (v *InstanceInput) GetShowChat() bool

GetShowChat returns InstanceInput.ShowChat, and is useful for accessing the field via an interface.

func (*InstanceInput) GetShowComments

func (v *InstanceInput) GetShowComments() bool

GetShowComments returns InstanceInput.ShowComments, and is useful for accessing the field via an interface.

func (*InstanceInput) GetShowLikes

func (v *InstanceInput) GetShowLikes() bool

GetShowLikes returns InstanceInput.ShowLikes, and is useful for accessing the field via an interface.

type InstanceInstanceUserInstancesEdge

type InstanceInstanceUserInstancesEdge struct {
	UserInstancesEdgeFragment `json:"-"`
}

InstanceInstanceUserInstancesEdge includes the requested fields of the GraphQL type UserInstancesEdge.

func (*InstanceInstanceUserInstancesEdge) GetCursor

GetCursor returns InstanceInstanceUserInstancesEdge.Cursor, and is useful for accessing the field via an interface.

func (*InstanceInstanceUserInstancesEdge) GetInstanceUser

GetInstanceUser returns InstanceInstanceUserInstancesEdge.InstanceUser, and is useful for accessing the field via an interface.

func (*InstanceInstanceUserInstancesEdge) GetLikedByMe

func (v *InstanceInstanceUserInstancesEdge) GetLikedByMe() bool

GetLikedByMe returns InstanceInstanceUserInstancesEdge.LikedByMe, and is useful for accessing the field via an interface.

func (*InstanceInstanceUserInstancesEdge) GetNode

GetNode returns InstanceInstanceUserInstancesEdge.Node, and is useful for accessing the field via an interface.

func (*InstanceInstanceUserInstancesEdge) GetPinned

func (v *InstanceInstanceUserInstancesEdge) GetPinned() bool

GetPinned returns InstanceInstanceUserInstancesEdge.Pinned, and is useful for accessing the field via an interface.

func (*InstanceInstanceUserInstancesEdge) GetRank

GetRank returns InstanceInstanceUserInstancesEdge.Rank, and is useful for accessing the field via an interface.

func (*InstanceInstanceUserInstancesEdge) MarshalJSON

func (v *InstanceInstanceUserInstancesEdge) MarshalJSON() ([]byte, error)

func (*InstanceInstanceUserInstancesEdge) UnmarshalJSON

func (v *InstanceInstanceUserInstancesEdge) UnmarshalJSON(b []byte) error

type InstanceLikesEdgeFragment

type InstanceLikesEdgeFragment struct {
	Cursor  string                              `json:"cursor"`
	LikedAt time.Time                           `json:"likedAt"`
	Node    InstanceLikesEdgeFragmentNodeAuthor `json:"node"`
}

InstanceLikesEdgeFragment includes the GraphQL fields of InstanceLikesEdge requested by the fragment InstanceLikesEdgeFragment.

func (*InstanceLikesEdgeFragment) GetCursor

func (v *InstanceLikesEdgeFragment) GetCursor() string

GetCursor returns InstanceLikesEdgeFragment.Cursor, and is useful for accessing the field via an interface.

func (*InstanceLikesEdgeFragment) GetLikedAt

func (v *InstanceLikesEdgeFragment) GetLikedAt() time.Time

GetLikedAt returns InstanceLikesEdgeFragment.LikedAt, and is useful for accessing the field via an interface.

func (*InstanceLikesEdgeFragment) GetNode

GetNode returns InstanceLikesEdgeFragment.Node, and is useful for accessing the field via an interface.

type InstanceLikesEdgeFragmentNodeAuthor

type InstanceLikesEdgeFragmentNodeAuthor struct {
	AuthorFragment `json:"-"`
}

InstanceLikesEdgeFragmentNodeAuthor includes the requested fields of the GraphQL type Author.

func (*InstanceLikesEdgeFragmentNodeAuthor) GetAvatar

GetAvatar returns InstanceLikesEdgeFragmentNodeAuthor.Avatar, and is useful for accessing the field via an interface.

func (*InstanceLikesEdgeFragmentNodeAuthor) GetBio

GetBio returns InstanceLikesEdgeFragmentNodeAuthor.Bio, and is useful for accessing the field via an interface.

func (*InstanceLikesEdgeFragmentNodeAuthor) GetCreatedAt

func (v *InstanceLikesEdgeFragmentNodeAuthor) GetCreatedAt() time.Time

GetCreatedAt returns InstanceLikesEdgeFragmentNodeAuthor.CreatedAt, and is useful for accessing the field via an interface.

func (*InstanceLikesEdgeFragmentNodeAuthor) GetId

GetId returns InstanceLikesEdgeFragmentNodeAuthor.Id, and is useful for accessing the field via an interface.

func (*InstanceLikesEdgeFragmentNodeAuthor) GetInstanceId

func (v *InstanceLikesEdgeFragmentNodeAuthor) GetInstanceId() uuid.UUID

GetInstanceId returns InstanceLikesEdgeFragmentNodeAuthor.InstanceId, and is useful for accessing the field via an interface.

func (*InstanceLikesEdgeFragmentNodeAuthor) GetName

GetName returns InstanceLikesEdgeFragmentNodeAuthor.Name, and is useful for accessing the field via an interface.

func (*InstanceLikesEdgeFragmentNodeAuthor) GetRoles

func (v *InstanceLikesEdgeFragmentNodeAuthor) GetRoles() []Role

GetRoles returns InstanceLikesEdgeFragmentNodeAuthor.Roles, and is useful for accessing the field via an interface.

func (*InstanceLikesEdgeFragmentNodeAuthor) GetUserId

GetUserId returns InstanceLikesEdgeFragmentNodeAuthor.UserId, and is useful for accessing the field via an interface.

func (*InstanceLikesEdgeFragmentNodeAuthor) MarshalJSON

func (v *InstanceLikesEdgeFragmentNodeAuthor) MarshalJSON() ([]byte, error)

func (*InstanceLikesEdgeFragmentNodeAuthor) UnmarshalJSON

func (v *InstanceLikesEdgeFragmentNodeAuthor) UnmarshalJSON(b []byte) error

type InstancePinInput

type InstancePinInput struct {
	Pinned bool `json:"pinned"`
}

func (*InstancePinInput) GetPinned

func (v *InstancePinInput) GetPinned() bool

GetPinned returns InstancePinInput.Pinned, and is useful for accessing the field via an interface.

type InstanceReorderInput

type InstanceReorderInput struct {
	PrevInstanceId *uuid.UUID `json:"prevInstanceId"`
}

func (*InstanceReorderInput) GetPrevInstanceId

func (v *InstanceReorderInput) GetPrevInstanceId() *uuid.UUID

GetPrevInstanceId returns InstanceReorderInput.PrevInstanceId, and is useful for accessing the field via an interface.

type InstanceResponse

type InstanceResponse struct {
	Instance InstanceInstanceUserInstancesEdge `json:"instance"`
}

InstanceResponse is returned by Instance on success.

func Instance

func Instance(
	ctx context.Context,
	client graphql.Client,
	id uuid.UUID,
	channelsFirst int,
	channelsAfter string,
	likesFirst int,
	likesAfter string,
	authorsFirst int,
	authorsAfter string,
	authorsRoles []Role,
	messagesLast int,
	messagesBefore string,
) (*InstanceResponse, error)

func (*InstanceResponse) GetInstance

GetInstance returns InstanceResponse.Instance, and is useful for accessing the field via an interface.

type InstanceUserListByIdsInstanceUserListByIdsAuthor added in v0.0.4

type InstanceUserListByIdsInstanceUserListByIdsAuthor struct {
	AuthorFragment `json:"-"`
}

InstanceUserListByIdsInstanceUserListByIdsAuthor includes the requested fields of the GraphQL type Author.

func (*InstanceUserListByIdsInstanceUserListByIdsAuthor) GetAvatar added in v0.0.4

GetAvatar returns InstanceUserListByIdsInstanceUserListByIdsAuthor.Avatar, and is useful for accessing the field via an interface.

func (*InstanceUserListByIdsInstanceUserListByIdsAuthor) GetBio added in v0.0.4

GetBio returns InstanceUserListByIdsInstanceUserListByIdsAuthor.Bio, and is useful for accessing the field via an interface.

func (*InstanceUserListByIdsInstanceUserListByIdsAuthor) GetCreatedAt added in v0.0.4

GetCreatedAt returns InstanceUserListByIdsInstanceUserListByIdsAuthor.CreatedAt, and is useful for accessing the field via an interface.

func (*InstanceUserListByIdsInstanceUserListByIdsAuthor) GetId added in v0.0.4

GetId returns InstanceUserListByIdsInstanceUserListByIdsAuthor.Id, and is useful for accessing the field via an interface.

func (*InstanceUserListByIdsInstanceUserListByIdsAuthor) GetInstanceId added in v0.0.4

GetInstanceId returns InstanceUserListByIdsInstanceUserListByIdsAuthor.InstanceId, and is useful for accessing the field via an interface.

func (*InstanceUserListByIdsInstanceUserListByIdsAuthor) GetName added in v0.0.4

GetName returns InstanceUserListByIdsInstanceUserListByIdsAuthor.Name, and is useful for accessing the field via an interface.

func (*InstanceUserListByIdsInstanceUserListByIdsAuthor) GetRoles added in v0.0.4

GetRoles returns InstanceUserListByIdsInstanceUserListByIdsAuthor.Roles, and is useful for accessing the field via an interface.

func (*InstanceUserListByIdsInstanceUserListByIdsAuthor) GetUserId added in v0.0.4

GetUserId returns InstanceUserListByIdsInstanceUserListByIdsAuthor.UserId, and is useful for accessing the field via an interface.

func (*InstanceUserListByIdsInstanceUserListByIdsAuthor) MarshalJSON added in v0.0.4

func (*InstanceUserListByIdsInstanceUserListByIdsAuthor) UnmarshalJSON added in v0.0.4

type InstanceUserListByIdsResponse added in v0.0.4

type InstanceUserListByIdsResponse struct {
	InstanceUserListByIds []InstanceUserListByIdsInstanceUserListByIdsAuthor `json:"instanceUserListByIds"`
}

InstanceUserListByIdsResponse is returned by InstanceUserListByIds on success.

func InstanceUserListByIds added in v0.0.4

func InstanceUserListByIds(
	ctx context.Context,
	client graphql.Client,
	instanceId uuid.UUID,
	instanceUserIds []uuid.UUID,
) (*InstanceUserListByIdsResponse, error)

func (*InstanceUserListByIdsResponse) GetInstanceUserListByIds added in v0.0.4

GetInstanceUserListByIds returns InstanceUserListByIdsResponse.InstanceUserListByIds, and is useful for accessing the field via an interface.

type InviteFragment

type InviteFragment struct {
	Id          uuid.UUID            `json:"id"`
	InstanceId  uuid.UUID            `json:"instanceId"`
	Code        string               `json:"code"`
	CreatedAt   time.Time            `json:"createdAt"`
	ExpiresAt   *time.Time           `json:"expiresAt"`
	Redemptions *int                 `json:"redemptions"`
	Author      InviteFragmentAuthor `json:"author"`
}

InviteFragment includes the GraphQL fields of Invite requested by the fragment InviteFragment.

func (*InviteFragment) GetAuthor

func (v *InviteFragment) GetAuthor() InviteFragmentAuthor

GetAuthor returns InviteFragment.Author, and is useful for accessing the field via an interface.

func (*InviteFragment) GetCode

func (v *InviteFragment) GetCode() string

GetCode returns InviteFragment.Code, and is useful for accessing the field via an interface.

func (*InviteFragment) GetCreatedAt

func (v *InviteFragment) GetCreatedAt() time.Time

GetCreatedAt returns InviteFragment.CreatedAt, and is useful for accessing the field via an interface.

func (*InviteFragment) GetExpiresAt

func (v *InviteFragment) GetExpiresAt() *time.Time

GetExpiresAt returns InviteFragment.ExpiresAt, and is useful for accessing the field via an interface.

func (*InviteFragment) GetId

func (v *InviteFragment) GetId() uuid.UUID

GetId returns InviteFragment.Id, and is useful for accessing the field via an interface.

func (*InviteFragment) GetInstanceId

func (v *InviteFragment) GetInstanceId() uuid.UUID

GetInstanceId returns InviteFragment.InstanceId, and is useful for accessing the field via an interface.

func (*InviteFragment) GetRedemptions

func (v *InviteFragment) GetRedemptions() *int

GetRedemptions returns InviteFragment.Redemptions, and is useful for accessing the field via an interface.

type InviteFragmentAuthor

type InviteFragmentAuthor struct {
	AuthorFragment `json:"-"`
}

InviteFragmentAuthor includes the requested fields of the GraphQL type Author.

func (*InviteFragmentAuthor) GetAvatar

func (v *InviteFragmentAuthor) GetAvatar() string

GetAvatar returns InviteFragmentAuthor.Avatar, and is useful for accessing the field via an interface.

func (*InviteFragmentAuthor) GetBio

func (v *InviteFragmentAuthor) GetBio() string

GetBio returns InviteFragmentAuthor.Bio, and is useful for accessing the field via an interface.

func (*InviteFragmentAuthor) GetCreatedAt

func (v *InviteFragmentAuthor) GetCreatedAt() time.Time

GetCreatedAt returns InviteFragmentAuthor.CreatedAt, and is useful for accessing the field via an interface.

func (*InviteFragmentAuthor) GetId

func (v *InviteFragmentAuthor) GetId() uuid.UUID

GetId returns InviteFragmentAuthor.Id, and is useful for accessing the field via an interface.

func (*InviteFragmentAuthor) GetInstanceId

func (v *InviteFragmentAuthor) GetInstanceId() uuid.UUID

GetInstanceId returns InviteFragmentAuthor.InstanceId, and is useful for accessing the field via an interface.

func (*InviteFragmentAuthor) GetName

func (v *InviteFragmentAuthor) GetName() string

GetName returns InviteFragmentAuthor.Name, and is useful for accessing the field via an interface.

func (*InviteFragmentAuthor) GetRoles

func (v *InviteFragmentAuthor) GetRoles() []Role

GetRoles returns InviteFragmentAuthor.Roles, and is useful for accessing the field via an interface.

func (*InviteFragmentAuthor) GetUserId

func (v *InviteFragmentAuthor) GetUserId() uuid.UUID

GetUserId returns InviteFragmentAuthor.UserId, and is useful for accessing the field via an interface.

func (*InviteFragmentAuthor) MarshalJSON

func (v *InviteFragmentAuthor) MarshalJSON() ([]byte, error)

func (*InviteFragmentAuthor) UnmarshalJSON

func (v *InviteFragmentAuthor) UnmarshalJSON(b []byte) error

type InviteInput

type InviteInput struct {
	InstanceId  uuid.UUID  `json:"instanceId"`
	ExpiresAt   *time.Time `json:"expiresAt"`
	Redemptions *int       `json:"redemptions"`
}

func (*InviteInput) GetExpiresAt

func (v *InviteInput) GetExpiresAt() *time.Time

GetExpiresAt returns InviteInput.ExpiresAt, and is useful for accessing the field via an interface.

func (*InviteInput) GetInstanceId

func (v *InviteInput) GetInstanceId() uuid.UUID

GetInstanceId returns InviteInput.InstanceId, and is useful for accessing the field via an interface.

func (*InviteInput) GetRedemptions

func (v *InviteInput) GetRedemptions() *int

GetRedemptions returns InviteInput.Redemptions, and is useful for accessing the field via an interface.

type InviteInvite

type InviteInvite struct {
	InviteFragment `json:"-"`
}

InviteInvite includes the requested fields of the GraphQL type Invite.

func (*InviteInvite) GetAuthor

func (v *InviteInvite) GetAuthor() InviteFragmentAuthor

GetAuthor returns InviteInvite.Author, and is useful for accessing the field via an interface.

func (*InviteInvite) GetCode

func (v *InviteInvite) GetCode() string

GetCode returns InviteInvite.Code, and is useful for accessing the field via an interface.

func (*InviteInvite) GetCreatedAt

func (v *InviteInvite) GetCreatedAt() time.Time

GetCreatedAt returns InviteInvite.CreatedAt, and is useful for accessing the field via an interface.

func (*InviteInvite) GetExpiresAt

func (v *InviteInvite) GetExpiresAt() *time.Time

GetExpiresAt returns InviteInvite.ExpiresAt, and is useful for accessing the field via an interface.

func (*InviteInvite) GetId

func (v *InviteInvite) GetId() uuid.UUID

GetId returns InviteInvite.Id, and is useful for accessing the field via an interface.

func (*InviteInvite) GetInstanceId

func (v *InviteInvite) GetInstanceId() uuid.UUID

GetInstanceId returns InviteInvite.InstanceId, and is useful for accessing the field via an interface.

func (*InviteInvite) GetRedemptions

func (v *InviteInvite) GetRedemptions() *int

GetRedemptions returns InviteInvite.Redemptions, and is useful for accessing the field via an interface.

func (*InviteInvite) MarshalJSON

func (v *InviteInvite) MarshalJSON() ([]byte, error)

func (*InviteInvite) UnmarshalJSON

func (v *InviteInvite) UnmarshalJSON(b []byte) error

type InviteResponse

type InviteResponse struct {
	Invite InviteInvite `json:"invite"`
}

InviteResponse is returned by Invite on success.

func Invite

func Invite(
	ctx context.Context,
	client graphql.Client,
	instanceId uuid.UUID,
) (*InviteResponse, error)

func (*InviteResponse) GetInvite

func (v *InviteResponse) GetInvite() InviteInvite

GetInvite returns InviteResponse.Invite, and is useful for accessing the field via an interface.

type MessageFragment

type MessageFragment struct {
	Id             uuid.UUID                      `json:"id"`
	Author         MessageFragmentAuthor          `json:"author"`
	Text           string                         `json:"text"`
	CreatedAt      time.Time                      `json:"createdAt"`
	ChannelId      uuid.UUID                      `json:"channelId"`
	RepliedMessage *MessageFragmentRepliedMessage `json:"repliedMessage"`
	ImageUrls      []string                       `json:"imageUrls"`
}

MessageFragment includes the GraphQL fields of Message requested by the fragment MessageFragment.

func (*MessageFragment) GetAuthor

func (v *MessageFragment) GetAuthor() MessageFragmentAuthor

GetAuthor returns MessageFragment.Author, and is useful for accessing the field via an interface.

func (*MessageFragment) GetChannelId

func (v *MessageFragment) GetChannelId() uuid.UUID

GetChannelId returns MessageFragment.ChannelId, and is useful for accessing the field via an interface.

func (*MessageFragment) GetCreatedAt

func (v *MessageFragment) GetCreatedAt() time.Time

GetCreatedAt returns MessageFragment.CreatedAt, and is useful for accessing the field via an interface.

func (*MessageFragment) GetId

func (v *MessageFragment) GetId() uuid.UUID

GetId returns MessageFragment.Id, and is useful for accessing the field via an interface.

func (*MessageFragment) GetImageUrls added in v0.0.4

func (v *MessageFragment) GetImageUrls() []string

GetImageUrls returns MessageFragment.ImageUrls, and is useful for accessing the field via an interface.

func (*MessageFragment) GetRepliedMessage added in v0.0.4

func (v *MessageFragment) GetRepliedMessage() *MessageFragmentRepliedMessage

GetRepliedMessage returns MessageFragment.RepliedMessage, and is useful for accessing the field via an interface.

func (*MessageFragment) GetText

func (v *MessageFragment) GetText() string

GetText returns MessageFragment.Text, and is useful for accessing the field via an interface.

type MessageFragmentAuthor

type MessageFragmentAuthor struct {
	AuthorFragment `json:"-"`
}

MessageFragmentAuthor includes the requested fields of the GraphQL type Author.

func (*MessageFragmentAuthor) GetAvatar

func (v *MessageFragmentAuthor) GetAvatar() string

GetAvatar returns MessageFragmentAuthor.Avatar, and is useful for accessing the field via an interface.

func (*MessageFragmentAuthor) GetBio

func (v *MessageFragmentAuthor) GetBio() string

GetBio returns MessageFragmentAuthor.Bio, and is useful for accessing the field via an interface.

func (*MessageFragmentAuthor) GetCreatedAt

func (v *MessageFragmentAuthor) GetCreatedAt() time.Time

GetCreatedAt returns MessageFragmentAuthor.CreatedAt, and is useful for accessing the field via an interface.

func (*MessageFragmentAuthor) GetId

func (v *MessageFragmentAuthor) GetId() uuid.UUID

GetId returns MessageFragmentAuthor.Id, and is useful for accessing the field via an interface.

func (*MessageFragmentAuthor) GetInstanceId

func (v *MessageFragmentAuthor) GetInstanceId() uuid.UUID

GetInstanceId returns MessageFragmentAuthor.InstanceId, and is useful for accessing the field via an interface.

func (*MessageFragmentAuthor) GetName

func (v *MessageFragmentAuthor) GetName() string

GetName returns MessageFragmentAuthor.Name, and is useful for accessing the field via an interface.

func (*MessageFragmentAuthor) GetRoles

func (v *MessageFragmentAuthor) GetRoles() []Role

GetRoles returns MessageFragmentAuthor.Roles, and is useful for accessing the field via an interface.

func (*MessageFragmentAuthor) GetUserId

func (v *MessageFragmentAuthor) GetUserId() uuid.UUID

GetUserId returns MessageFragmentAuthor.UserId, and is useful for accessing the field via an interface.

func (*MessageFragmentAuthor) MarshalJSON

func (v *MessageFragmentAuthor) MarshalJSON() ([]byte, error)

func (*MessageFragmentAuthor) UnmarshalJSON

func (v *MessageFragmentAuthor) UnmarshalJSON(b []byte) error

type MessageFragmentRepliedMessage added in v0.0.4

type MessageFragmentRepliedMessage struct {
	Id        uuid.UUID `json:"id"`
	Text      string    `json:"text"`
	CreatedAt time.Time `json:"createdAt"`
	ChannelId uuid.UUID `json:"channelId"`
	ImageUrls []string  `json:"imageUrls"`
}

MessageFragmentRepliedMessage includes the requested fields of the GraphQL type Message.

func (*MessageFragmentRepliedMessage) GetChannelId added in v0.0.4

func (v *MessageFragmentRepliedMessage) GetChannelId() uuid.UUID

GetChannelId returns MessageFragmentRepliedMessage.ChannelId, and is useful for accessing the field via an interface.

func (*MessageFragmentRepliedMessage) GetCreatedAt added in v0.0.4

func (v *MessageFragmentRepliedMessage) GetCreatedAt() time.Time

GetCreatedAt returns MessageFragmentRepliedMessage.CreatedAt, and is useful for accessing the field via an interface.

func (*MessageFragmentRepliedMessage) GetId added in v0.0.4

GetId returns MessageFragmentRepliedMessage.Id, and is useful for accessing the field via an interface.

func (*MessageFragmentRepliedMessage) GetImageUrls added in v0.0.4

func (v *MessageFragmentRepliedMessage) GetImageUrls() []string

GetImageUrls returns MessageFragmentRepliedMessage.ImageUrls, and is useful for accessing the field via an interface.

func (*MessageFragmentRepliedMessage) GetText added in v0.0.4

GetText returns MessageFragmentRepliedMessage.Text, and is useful for accessing the field via an interface.

type MessageInput

type MessageInput struct {
	Text             string     `json:"text"`
	ChannelId        uuid.UUID  `json:"channelId"`
	RepliedMessageId *uuid.UUID `json:"repliedMessageId"`
	ImageUrls        []string   `json:"imageUrls"`
}

func (*MessageInput) GetChannelId

func (v *MessageInput) GetChannelId() uuid.UUID

GetChannelId returns MessageInput.ChannelId, and is useful for accessing the field via an interface.

func (*MessageInput) GetImageUrls added in v0.0.4

func (v *MessageInput) GetImageUrls() []string

GetImageUrls returns MessageInput.ImageUrls, and is useful for accessing the field via an interface.

func (*MessageInput) GetRepliedMessageId added in v0.0.4

func (v *MessageInput) GetRepliedMessageId() *uuid.UUID

GetRepliedMessageId returns MessageInput.RepliedMessageId, and is useful for accessing the field via an interface.

func (*MessageInput) GetText

func (v *MessageInput) GetText() string

GetText returns MessageInput.Text, and is useful for accessing the field via an interface.

type NotificationFragment

type NotificationFragment struct {
	Id        uuid.UUID                     `json:"id"`
	Kind      NotificationKind              `json:"kind"`
	Author    *NotificationFragmentAuthor   `json:"author"`
	Instance  *NotificationFragmentInstance `json:"instance"`
	Message   *NotificationFragmentMessage  `json:"message"`
	CreatedAt time.Time                     `json:"createdAt"`
}

NotificationFragment includes the GraphQL fields of Notification requested by the fragment NotificationFragment.

func (*NotificationFragment) GetAuthor

GetAuthor returns NotificationFragment.Author, and is useful for accessing the field via an interface.

func (*NotificationFragment) GetCreatedAt

func (v *NotificationFragment) GetCreatedAt() time.Time

GetCreatedAt returns NotificationFragment.CreatedAt, and is useful for accessing the field via an interface.

func (*NotificationFragment) GetId

func (v *NotificationFragment) GetId() uuid.UUID

GetId returns NotificationFragment.Id, and is useful for accessing the field via an interface.

func (*NotificationFragment) GetInstance

GetInstance returns NotificationFragment.Instance, and is useful for accessing the field via an interface.

func (*NotificationFragment) GetKind

GetKind returns NotificationFragment.Kind, and is useful for accessing the field via an interface.

func (*NotificationFragment) GetMessage

GetMessage returns NotificationFragment.Message, and is useful for accessing the field via an interface.

type NotificationFragmentAuthor

type NotificationFragmentAuthor struct {
	AuthorFragment `json:"-"`
}

NotificationFragmentAuthor includes the requested fields of the GraphQL type Author.

func (*NotificationFragmentAuthor) GetAvatar

func (v *NotificationFragmentAuthor) GetAvatar() string

GetAvatar returns NotificationFragmentAuthor.Avatar, and is useful for accessing the field via an interface.

func (*NotificationFragmentAuthor) GetBio

func (v *NotificationFragmentAuthor) GetBio() string

GetBio returns NotificationFragmentAuthor.Bio, and is useful for accessing the field via an interface.

func (*NotificationFragmentAuthor) GetCreatedAt

func (v *NotificationFragmentAuthor) GetCreatedAt() time.Time

GetCreatedAt returns NotificationFragmentAuthor.CreatedAt, and is useful for accessing the field via an interface.

func (*NotificationFragmentAuthor) GetId

GetId returns NotificationFragmentAuthor.Id, and is useful for accessing the field via an interface.

func (*NotificationFragmentAuthor) GetInstanceId

func (v *NotificationFragmentAuthor) GetInstanceId() uuid.UUID

GetInstanceId returns NotificationFragmentAuthor.InstanceId, and is useful for accessing the field via an interface.

func (*NotificationFragmentAuthor) GetName

func (v *NotificationFragmentAuthor) GetName() string

GetName returns NotificationFragmentAuthor.Name, and is useful for accessing the field via an interface.

func (*NotificationFragmentAuthor) GetRoles

func (v *NotificationFragmentAuthor) GetRoles() []Role

GetRoles returns NotificationFragmentAuthor.Roles, and is useful for accessing the field via an interface.

func (*NotificationFragmentAuthor) GetUserId

func (v *NotificationFragmentAuthor) GetUserId() uuid.UUID

GetUserId returns NotificationFragmentAuthor.UserId, and is useful for accessing the field via an interface.

func (*NotificationFragmentAuthor) MarshalJSON

func (v *NotificationFragmentAuthor) MarshalJSON() ([]byte, error)

func (*NotificationFragmentAuthor) UnmarshalJSON

func (v *NotificationFragmentAuthor) UnmarshalJSON(b []byte) error

type NotificationFragmentInstance

type NotificationFragmentInstance struct {
	InstanceFragment `json:"-"`
}

NotificationFragmentInstance includes the requested fields of the GraphQL type Instance.

func (*NotificationFragmentInstance) GetAuthor

GetAuthor returns NotificationFragmentInstance.Author, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetAuthorsConnection

GetAuthorsConnection returns NotificationFragmentInstance.AuthorsConnection, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetChannelsConnection

GetChannelsConnection returns NotificationFragmentInstance.ChannelsConnection, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetCommentsCount

func (v *NotificationFragmentInstance) GetCommentsCount() int

GetCommentsCount returns NotificationFragmentInstance.CommentsCount, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetCreatedAt

func (v *NotificationFragmentInstance) GetCreatedAt() time.Time

GetCreatedAt returns NotificationFragmentInstance.CreatedAt, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetDescription

func (v *NotificationFragmentInstance) GetDescription() string

GetDescription returns NotificationFragmentInstance.Description, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetIcon

func (v *NotificationFragmentInstance) GetIcon() string

GetIcon returns NotificationFragmentInstance.Icon, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetId

GetId returns NotificationFragmentInstance.Id, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetLikesConnection

GetLikesConnection returns NotificationFragmentInstance.LikesConnection, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetLikesCount

func (v *NotificationFragmentInstance) GetLikesCount() int

GetLikesCount returns NotificationFragmentInstance.LikesCount, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetName

func (v *NotificationFragmentInstance) GetName() string

GetName returns NotificationFragmentInstance.Name, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetReadAccess

func (v *NotificationFragmentInstance) GetReadAccess() Access

GetReadAccess returns NotificationFragmentInstance.ReadAccess, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetShowAuthor

func (v *NotificationFragmentInstance) GetShowAuthor() bool

GetShowAuthor returns NotificationFragmentInstance.ShowAuthor, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetShowChat

func (v *NotificationFragmentInstance) GetShowChat() bool

GetShowChat returns NotificationFragmentInstance.ShowChat, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetShowComments

func (v *NotificationFragmentInstance) GetShowComments() bool

GetShowComments returns NotificationFragmentInstance.ShowComments, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) GetShowLikes

func (v *NotificationFragmentInstance) GetShowLikes() bool

GetShowLikes returns NotificationFragmentInstance.ShowLikes, and is useful for accessing the field via an interface.

func (*NotificationFragmentInstance) MarshalJSON

func (v *NotificationFragmentInstance) MarshalJSON() ([]byte, error)

func (*NotificationFragmentInstance) UnmarshalJSON

func (v *NotificationFragmentInstance) UnmarshalJSON(b []byte) error

type NotificationFragmentMessage

type NotificationFragmentMessage struct {
	MessageFragment `json:"-"`
}

NotificationFragmentMessage includes the requested fields of the GraphQL type Message.

func (*NotificationFragmentMessage) GetAuthor

GetAuthor returns NotificationFragmentMessage.Author, and is useful for accessing the field via an interface.

func (*NotificationFragmentMessage) GetChannelId

func (v *NotificationFragmentMessage) GetChannelId() uuid.UUID

GetChannelId returns NotificationFragmentMessage.ChannelId, and is useful for accessing the field via an interface.

func (*NotificationFragmentMessage) GetCreatedAt

func (v *NotificationFragmentMessage) GetCreatedAt() time.Time

GetCreatedAt returns NotificationFragmentMessage.CreatedAt, and is useful for accessing the field via an interface.

func (*NotificationFragmentMessage) GetId

GetId returns NotificationFragmentMessage.Id, and is useful for accessing the field via an interface.

func (*NotificationFragmentMessage) GetImageUrls added in v0.0.4

func (v *NotificationFragmentMessage) GetImageUrls() []string

GetImageUrls returns NotificationFragmentMessage.ImageUrls, and is useful for accessing the field via an interface.

func (*NotificationFragmentMessage) GetRepliedMessage added in v0.0.4

GetRepliedMessage returns NotificationFragmentMessage.RepliedMessage, and is useful for accessing the field via an interface.

func (*NotificationFragmentMessage) GetText

func (v *NotificationFragmentMessage) GetText() string

GetText returns NotificationFragmentMessage.Text, and is useful for accessing the field via an interface.

func (*NotificationFragmentMessage) MarshalJSON

func (v *NotificationFragmentMessage) MarshalJSON() ([]byte, error)

func (*NotificationFragmentMessage) UnmarshalJSON

func (v *NotificationFragmentMessage) UnmarshalJSON(b []byte) error

type NotificationKind

type NotificationKind string
const (
	NotificationKindLikeAdded    NotificationKind = "LIKE_ADDED"
	NotificationKindCommentAdded NotificationKind = "COMMENT_ADDED"
	NotificationKindReplyAdded   NotificationKind = "REPLY_ADDED"
	NotificationKindBadgeAdded   NotificationKind = "BADGE_ADDED"
)

type PageInfoFragment

type PageInfoFragment struct {
	HasNextPage     bool `json:"hasNextPage"`
	HasPreviousPage bool `json:"hasPreviousPage"`
}

PageInfoFragment includes the GraphQL fields of PageInfo requested by the fragment PageInfoFragment.

func (*PageInfoFragment) GetHasNextPage

func (v *PageInfoFragment) GetHasNextPage() bool

GetHasNextPage returns PageInfoFragment.HasNextPage, and is useful for accessing the field via an interface.

func (*PageInfoFragment) GetHasPreviousPage

func (v *PageInfoFragment) GetHasPreviousPage() bool

GetHasPreviousPage returns PageInfoFragment.HasPreviousPage, and is useful for accessing the field via an interface.

type PinInstancePinInstanceUserInstancesEdge

type PinInstancePinInstanceUserInstancesEdge struct {
	UserInstancesEdgeFragment `json:"-"`
}

PinInstancePinInstanceUserInstancesEdge includes the requested fields of the GraphQL type UserInstancesEdge.

func (*PinInstancePinInstanceUserInstancesEdge) GetCursor

GetCursor returns PinInstancePinInstanceUserInstancesEdge.Cursor, and is useful for accessing the field via an interface.

func (*PinInstancePinInstanceUserInstancesEdge) GetInstanceUser

GetInstanceUser returns PinInstancePinInstanceUserInstancesEdge.InstanceUser, and is useful for accessing the field via an interface.

func (*PinInstancePinInstanceUserInstancesEdge) GetLikedByMe

GetLikedByMe returns PinInstancePinInstanceUserInstancesEdge.LikedByMe, and is useful for accessing the field via an interface.

func (*PinInstancePinInstanceUserInstancesEdge) GetNode

GetNode returns PinInstancePinInstanceUserInstancesEdge.Node, and is useful for accessing the field via an interface.

func (*PinInstancePinInstanceUserInstancesEdge) GetPinned

GetPinned returns PinInstancePinInstanceUserInstancesEdge.Pinned, and is useful for accessing the field via an interface.

func (*PinInstancePinInstanceUserInstancesEdge) GetRank

GetRank returns PinInstancePinInstanceUserInstancesEdge.Rank, and is useful for accessing the field via an interface.

func (*PinInstancePinInstanceUserInstancesEdge) MarshalJSON

func (v *PinInstancePinInstanceUserInstancesEdge) MarshalJSON() ([]byte, error)

func (*PinInstancePinInstanceUserInstancesEdge) UnmarshalJSON

func (v *PinInstancePinInstanceUserInstancesEdge) UnmarshalJSON(b []byte) error

type PinInstanceResponse

type PinInstanceResponse struct {
	PinInstance PinInstancePinInstanceUserInstancesEdge `json:"pinInstance"`
}

PinInstanceResponse is returned by PinInstance on success.

func PinInstance

func PinInstance(
	ctx context.Context,
	client graphql.Client,
	input InstancePinInput,
	instanceId uuid.UUID,
	channelsFirst int,
	channelsAfter string,
	likesFirst int,
	likesAfter string,
	authorsFirst int,
	authorsAfter string,
	authorsRoles []Role,
	messagesLast int,
	messagesBefore string,
) (*PinInstanceResponse, error)

func (*PinInstanceResponse) GetPinInstance

GetPinInstance returns PinInstanceResponse.PinInstance, and is useful for accessing the field via an interface.

type RedeemInviteRedeemInvite

type RedeemInviteRedeemInvite struct {
	InviteFragment `json:"-"`
}

RedeemInviteRedeemInvite includes the requested fields of the GraphQL type Invite.

func (*RedeemInviteRedeemInvite) GetAuthor

GetAuthor returns RedeemInviteRedeemInvite.Author, and is useful for accessing the field via an interface.

func (*RedeemInviteRedeemInvite) GetCode

func (v *RedeemInviteRedeemInvite) GetCode() string

GetCode returns RedeemInviteRedeemInvite.Code, and is useful for accessing the field via an interface.

func (*RedeemInviteRedeemInvite) GetCreatedAt

func (v *RedeemInviteRedeemInvite) GetCreatedAt() time.Time

GetCreatedAt returns RedeemInviteRedeemInvite.CreatedAt, and is useful for accessing the field via an interface.

func (*RedeemInviteRedeemInvite) GetExpiresAt

func (v *RedeemInviteRedeemInvite) GetExpiresAt() *time.Time

GetExpiresAt returns RedeemInviteRedeemInvite.ExpiresAt, and is useful for accessing the field via an interface.

func (*RedeemInviteRedeemInvite) GetId

func (v *RedeemInviteRedeemInvite) GetId() uuid.UUID

GetId returns RedeemInviteRedeemInvite.Id, and is useful for accessing the field via an interface.

func (*RedeemInviteRedeemInvite) GetInstanceId

func (v *RedeemInviteRedeemInvite) GetInstanceId() uuid.UUID

GetInstanceId returns RedeemInviteRedeemInvite.InstanceId, and is useful for accessing the field via an interface.

func (*RedeemInviteRedeemInvite) GetRedemptions

func (v *RedeemInviteRedeemInvite) GetRedemptions() *int

GetRedemptions returns RedeemInviteRedeemInvite.Redemptions, and is useful for accessing the field via an interface.

func (*RedeemInviteRedeemInvite) MarshalJSON

func (v *RedeemInviteRedeemInvite) MarshalJSON() ([]byte, error)

func (*RedeemInviteRedeemInvite) UnmarshalJSON

func (v *RedeemInviteRedeemInvite) UnmarshalJSON(b []byte) error

type RedeemInviteResponse

type RedeemInviteResponse struct {
	RedeemInvite RedeemInviteRedeemInvite `json:"redeemInvite"`
}

RedeemInviteResponse is returned by RedeemInvite on success.

func RedeemInvite

func RedeemInvite(
	ctx context.Context,
	client graphql.Client,
	code string,
) (*RedeemInviteResponse, error)

func (*RedeemInviteResponse) GetRedeemInvite

func (v *RedeemInviteResponse) GetRedeemInvite() RedeemInviteRedeemInvite

GetRedeemInvite returns RedeemInviteResponse.RedeemInvite, and is useful for accessing the field via an interface.

type RemoveChannelRemoveChannelInstanceChannelsEdge

type RemoveChannelRemoveChannelInstanceChannelsEdge struct {
	InstanceChannelsEdgeFragment `json:"-"`
}

RemoveChannelRemoveChannelInstanceChannelsEdge includes the requested fields of the GraphQL type InstanceChannelsEdge.

func (*RemoveChannelRemoveChannelInstanceChannelsEdge) GetCursor

GetCursor returns RemoveChannelRemoveChannelInstanceChannelsEdge.Cursor, and is useful for accessing the field via an interface.

func (*RemoveChannelRemoveChannelInstanceChannelsEdge) GetNode

GetNode returns RemoveChannelRemoveChannelInstanceChannelsEdge.Node, and is useful for accessing the field via an interface.

func (*RemoveChannelRemoveChannelInstanceChannelsEdge) MarshalJSON

func (*RemoveChannelRemoveChannelInstanceChannelsEdge) UnmarshalJSON

type RemoveChannelResponse

type RemoveChannelResponse struct {
	RemoveChannel RemoveChannelRemoveChannelInstanceChannelsEdge `json:"removeChannel"`
}

RemoveChannelResponse is returned by RemoveChannel on success.

func RemoveChannel

func RemoveChannel(
	ctx context.Context,
	client graphql.Client,
	channelId uuid.UUID,
	messagesLast int,
	messagesBefore string,
) (*RemoveChannelResponse, error)

func (*RemoveChannelResponse) GetRemoveChannel

GetRemoveChannel returns RemoveChannelResponse.RemoveChannel, and is useful for accessing the field via an interface.

type RemoveInstanceRemoveInstanceUserInstancesEdge

type RemoveInstanceRemoveInstanceUserInstancesEdge struct {
	UserInstancesEdgeFragment `json:"-"`
}

RemoveInstanceRemoveInstanceUserInstancesEdge includes the requested fields of the GraphQL type UserInstancesEdge.

func (*RemoveInstanceRemoveInstanceUserInstancesEdge) GetCursor

GetCursor returns RemoveInstanceRemoveInstanceUserInstancesEdge.Cursor, and is useful for accessing the field via an interface.

func (*RemoveInstanceRemoveInstanceUserInstancesEdge) GetInstanceUser

GetInstanceUser returns RemoveInstanceRemoveInstanceUserInstancesEdge.InstanceUser, and is useful for accessing the field via an interface.

func (*RemoveInstanceRemoveInstanceUserInstancesEdge) GetLikedByMe

GetLikedByMe returns RemoveInstanceRemoveInstanceUserInstancesEdge.LikedByMe, and is useful for accessing the field via an interface.

func (*RemoveInstanceRemoveInstanceUserInstancesEdge) GetNode

GetNode returns RemoveInstanceRemoveInstanceUserInstancesEdge.Node, and is useful for accessing the field via an interface.

func (*RemoveInstanceRemoveInstanceUserInstancesEdge) GetPinned

GetPinned returns RemoveInstanceRemoveInstanceUserInstancesEdge.Pinned, and is useful for accessing the field via an interface.

func (*RemoveInstanceRemoveInstanceUserInstancesEdge) GetRank

GetRank returns RemoveInstanceRemoveInstanceUserInstancesEdge.Rank, and is useful for accessing the field via an interface.

func (*RemoveInstanceRemoveInstanceUserInstancesEdge) MarshalJSON

func (*RemoveInstanceRemoveInstanceUserInstancesEdge) UnmarshalJSON

type RemoveInstanceResponse

type RemoveInstanceResponse struct {
	RemoveInstance RemoveInstanceRemoveInstanceUserInstancesEdge `json:"removeInstance"`
}

RemoveInstanceResponse is returned by RemoveInstance on success.

func RemoveInstance

func RemoveInstance(
	ctx context.Context,
	client graphql.Client,
	instanceId uuid.UUID,
	channelsFirst int,
	channelsAfter string,
	likesFirst int,
	likesAfter string,
	authorsFirst int,
	authorsAfter string,
	authorsRoles []Role,
	messagesLast int,
	messagesBefore string,
) (*RemoveInstanceResponse, error)

func (*RemoveInstanceResponse) GetRemoveInstance

GetRemoveInstance returns RemoveInstanceResponse.RemoveInstance, and is useful for accessing the field via an interface.

type RemoveLikeRemoveLikeInstanceLikesEdge

type RemoveLikeRemoveLikeInstanceLikesEdge struct {
	InstanceLikesEdgeFragment `json:"-"`
}

RemoveLikeRemoveLikeInstanceLikesEdge includes the requested fields of the GraphQL type InstanceLikesEdge.

func (*RemoveLikeRemoveLikeInstanceLikesEdge) GetCursor

GetCursor returns RemoveLikeRemoveLikeInstanceLikesEdge.Cursor, and is useful for accessing the field via an interface.

func (*RemoveLikeRemoveLikeInstanceLikesEdge) GetLikedAt

GetLikedAt returns RemoveLikeRemoveLikeInstanceLikesEdge.LikedAt, and is useful for accessing the field via an interface.

func (*RemoveLikeRemoveLikeInstanceLikesEdge) GetNode

GetNode returns RemoveLikeRemoveLikeInstanceLikesEdge.Node, and is useful for accessing the field via an interface.

func (*RemoveLikeRemoveLikeInstanceLikesEdge) MarshalJSON

func (v *RemoveLikeRemoveLikeInstanceLikesEdge) MarshalJSON() ([]byte, error)

func (*RemoveLikeRemoveLikeInstanceLikesEdge) UnmarshalJSON

func (v *RemoveLikeRemoveLikeInstanceLikesEdge) UnmarshalJSON(b []byte) error

type RemoveLikeResponse

type RemoveLikeResponse struct {
	RemoveLike RemoveLikeRemoveLikeInstanceLikesEdge `json:"removeLike"`
}

RemoveLikeResponse is returned by RemoveLike on success.

func RemoveLike

func RemoveLike(
	ctx context.Context,
	client graphql.Client,
	instanceId uuid.UUID,
) (*RemoveLikeResponse, error)

func (*RemoveLikeResponse) GetRemoveLike

GetRemoveLike returns RemoveLikeResponse.RemoveLike, and is useful for accessing the field via an interface.

type RemoveMessageRemoveMessageChannelMessagesEdge

type RemoveMessageRemoveMessageChannelMessagesEdge struct {
	ChannelMessagesEdgeFragment `json:"-"`
}

RemoveMessageRemoveMessageChannelMessagesEdge includes the requested fields of the GraphQL type ChannelMessagesEdge.

func (*RemoveMessageRemoveMessageChannelMessagesEdge) GetCursor

GetCursor returns RemoveMessageRemoveMessageChannelMessagesEdge.Cursor, and is useful for accessing the field via an interface.

func (*RemoveMessageRemoveMessageChannelMessagesEdge) GetNode

GetNode returns RemoveMessageRemoveMessageChannelMessagesEdge.Node, and is useful for accessing the field via an interface.

func (*RemoveMessageRemoveMessageChannelMessagesEdge) MarshalJSON

func (*RemoveMessageRemoveMessageChannelMessagesEdge) UnmarshalJSON

type RemoveMessageResponse

type RemoveMessageResponse struct {
	RemoveMessage RemoveMessageRemoveMessageChannelMessagesEdge `json:"removeMessage"`
}

RemoveMessageResponse is returned by RemoveMessage on success.

func RemoveMessage

func RemoveMessage(
	ctx context.Context,
	client graphql.Client,
	messageId uuid.UUID,
) (*RemoveMessageResponse, error)

func (*RemoveMessageResponse) GetRemoveMessage

GetRemoveMessage returns RemoveMessageResponse.RemoveMessage, and is useful for accessing the field via an interface.

type RemoveRoleRemoveRoleAuthor

type RemoveRoleRemoveRoleAuthor struct {
	AuthorFragment `json:"-"`
}

RemoveRoleRemoveRoleAuthor includes the requested fields of the GraphQL type Author.

func (*RemoveRoleRemoveRoleAuthor) GetAvatar

func (v *RemoveRoleRemoveRoleAuthor) GetAvatar() string

GetAvatar returns RemoveRoleRemoveRoleAuthor.Avatar, and is useful for accessing the field via an interface.

func (*RemoveRoleRemoveRoleAuthor) GetBio

func (v *RemoveRoleRemoveRoleAuthor) GetBio() string

GetBio returns RemoveRoleRemoveRoleAuthor.Bio, and is useful for accessing the field via an interface.

func (*RemoveRoleRemoveRoleAuthor) GetCreatedAt

func (v *RemoveRoleRemoveRoleAuthor) GetCreatedAt() time.Time

GetCreatedAt returns RemoveRoleRemoveRoleAuthor.CreatedAt, and is useful for accessing the field via an interface.

func (*RemoveRoleRemoveRoleAuthor) GetId

GetId returns RemoveRoleRemoveRoleAuthor.Id, and is useful for accessing the field via an interface.

func (*RemoveRoleRemoveRoleAuthor) GetInstanceId

func (v *RemoveRoleRemoveRoleAuthor) GetInstanceId() uuid.UUID

GetInstanceId returns RemoveRoleRemoveRoleAuthor.InstanceId, and is useful for accessing the field via an interface.

func (*RemoveRoleRemoveRoleAuthor) GetName

func (v *RemoveRoleRemoveRoleAuthor) GetName() string

GetName returns RemoveRoleRemoveRoleAuthor.Name, and is useful for accessing the field via an interface.

func (*RemoveRoleRemoveRoleAuthor) GetRoles

func (v *RemoveRoleRemoveRoleAuthor) GetRoles() []Role

GetRoles returns RemoveRoleRemoveRoleAuthor.Roles, and is useful for accessing the field via an interface.

func (*RemoveRoleRemoveRoleAuthor) GetUserId

func (v *RemoveRoleRemoveRoleAuthor) GetUserId() uuid.UUID

GetUserId returns RemoveRoleRemoveRoleAuthor.UserId, and is useful for accessing the field via an interface.

func (*RemoveRoleRemoveRoleAuthor) MarshalJSON

func (v *RemoveRoleRemoveRoleAuthor) MarshalJSON() ([]byte, error)

func (*RemoveRoleRemoveRoleAuthor) UnmarshalJSON

func (v *RemoveRoleRemoveRoleAuthor) UnmarshalJSON(b []byte) error

type RemoveRoleResponse

type RemoveRoleResponse struct {
	RemoveRole RemoveRoleRemoveRoleAuthor `json:"removeRole"`
}

RemoveRoleResponse is returned by RemoveRole on success.

func RemoveRole

func RemoveRole(
	ctx context.Context,
	client graphql.Client,
	authorId uuid.UUID,
	role Role,
) (*RemoveRoleResponse, error)

func (*RemoveRoleResponse) GetRemoveRole

GetRemoveRole returns RemoveRoleResponse.RemoveRole, and is useful for accessing the field via an interface.

type ReorderChannelReorderChannelInstanceChannelsEdge

type ReorderChannelReorderChannelInstanceChannelsEdge struct {
	InstanceChannelsEdgeFragment `json:"-"`
}

ReorderChannelReorderChannelInstanceChannelsEdge includes the requested fields of the GraphQL type InstanceChannelsEdge.

func (*ReorderChannelReorderChannelInstanceChannelsEdge) GetCursor

GetCursor returns ReorderChannelReorderChannelInstanceChannelsEdge.Cursor, and is useful for accessing the field via an interface.

func (*ReorderChannelReorderChannelInstanceChannelsEdge) GetNode

GetNode returns ReorderChannelReorderChannelInstanceChannelsEdge.Node, and is useful for accessing the field via an interface.

func (*ReorderChannelReorderChannelInstanceChannelsEdge) MarshalJSON

func (*ReorderChannelReorderChannelInstanceChannelsEdge) UnmarshalJSON

type ReorderChannelResponse

type ReorderChannelResponse struct {
	ReorderChannel ReorderChannelReorderChannelInstanceChannelsEdge `json:"reorderChannel"`
}

ReorderChannelResponse is returned by ReorderChannel on success.

func ReorderChannel

func ReorderChannel(
	ctx context.Context,
	client graphql.Client,
	input ChannelReorderInput,
	channelId uuid.UUID,
	messagesLast int,
	messagesBefore string,
) (*ReorderChannelResponse, error)

func (*ReorderChannelResponse) GetReorderChannel

GetReorderChannel returns ReorderChannelResponse.ReorderChannel, and is useful for accessing the field via an interface.

type ReorderInstanceReorderInstanceUserInstancesEdge

type ReorderInstanceReorderInstanceUserInstancesEdge struct {
	UserInstancesEdgeFragment `json:"-"`
}

ReorderInstanceReorderInstanceUserInstancesEdge includes the requested fields of the GraphQL type UserInstancesEdge.

func (*ReorderInstanceReorderInstanceUserInstancesEdge) GetCursor

GetCursor returns ReorderInstanceReorderInstanceUserInstancesEdge.Cursor, and is useful for accessing the field via an interface.

func (*ReorderInstanceReorderInstanceUserInstancesEdge) GetInstanceUser

GetInstanceUser returns ReorderInstanceReorderInstanceUserInstancesEdge.InstanceUser, and is useful for accessing the field via an interface.

func (*ReorderInstanceReorderInstanceUserInstancesEdge) GetLikedByMe

GetLikedByMe returns ReorderInstanceReorderInstanceUserInstancesEdge.LikedByMe, and is useful for accessing the field via an interface.

func (*ReorderInstanceReorderInstanceUserInstancesEdge) GetNode

GetNode returns ReorderInstanceReorderInstanceUserInstancesEdge.Node, and is useful for accessing the field via an interface.

func (*ReorderInstanceReorderInstanceUserInstancesEdge) GetPinned

GetPinned returns ReorderInstanceReorderInstanceUserInstancesEdge.Pinned, and is useful for accessing the field via an interface.

func (*ReorderInstanceReorderInstanceUserInstancesEdge) GetRank

GetRank returns ReorderInstanceReorderInstanceUserInstancesEdge.Rank, and is useful for accessing the field via an interface.

func (*ReorderInstanceReorderInstanceUserInstancesEdge) MarshalJSON

func (*ReorderInstanceReorderInstanceUserInstancesEdge) UnmarshalJSON

type ReorderInstanceResponse

type ReorderInstanceResponse struct {
	ReorderInstance ReorderInstanceReorderInstanceUserInstancesEdge `json:"reorderInstance"`
}

ReorderInstanceResponse is returned by ReorderInstance on success.

func ReorderInstance

func ReorderInstance(
	ctx context.Context,
	client graphql.Client,
	input InstanceReorderInput,
	instanceId uuid.UUID,
	channelsFirst int,
	channelsAfter string,
	likesFirst int,
	likesAfter string,
	authorsFirst int,
	authorsAfter string,
	authorsRoles []Role,
	messagesLast int,
	messagesBefore string,
) (*ReorderInstanceResponse, error)

func (*ReorderInstanceResponse) GetReorderInstance

GetReorderInstance returns ReorderInstanceResponse.ReorderInstance, and is useful for accessing the field via an interface.

type Role

type Role string
const (
	RoleAdmin     Role = "ADMIN"
	RoleModerator Role = "MODERATOR"
	RoleMember    Role = "MEMBER"
	RoleBanned    Role = "BANNED"
	RoleAllUsers  Role = "ALL_USERS"
)

type UpdateChannelResponse

type UpdateChannelResponse struct {
	UpdateChannel UpdateChannelUpdateChannelInstanceChannelsEdge `json:"updateChannel"`
}

UpdateChannelResponse is returned by UpdateChannel on success.

func UpdateChannel

func UpdateChannel(
	ctx context.Context,
	client graphql.Client,
	input ChannelInput,
	channelId uuid.UUID,
	messagesLast int,
	messagesBefore string,
) (*UpdateChannelResponse, error)

func (*UpdateChannelResponse) GetUpdateChannel

GetUpdateChannel returns UpdateChannelResponse.UpdateChannel, and is useful for accessing the field via an interface.

type UpdateChannelUpdateChannelInstanceChannelsEdge

type UpdateChannelUpdateChannelInstanceChannelsEdge struct {
	InstanceChannelsEdgeFragment `json:"-"`
}

UpdateChannelUpdateChannelInstanceChannelsEdge includes the requested fields of the GraphQL type InstanceChannelsEdge.

func (*UpdateChannelUpdateChannelInstanceChannelsEdge) GetCursor

GetCursor returns UpdateChannelUpdateChannelInstanceChannelsEdge.Cursor, and is useful for accessing the field via an interface.

func (*UpdateChannelUpdateChannelInstanceChannelsEdge) GetNode

GetNode returns UpdateChannelUpdateChannelInstanceChannelsEdge.Node, and is useful for accessing the field via an interface.

func (*UpdateChannelUpdateChannelInstanceChannelsEdge) MarshalJSON

func (*UpdateChannelUpdateChannelInstanceChannelsEdge) UnmarshalJSON

type UpdateInstanceResponse

type UpdateInstanceResponse struct {
	UpdateInstance UpdateInstanceUpdateInstanceUserInstancesEdge `json:"updateInstance"`
}

UpdateInstanceResponse is returned by UpdateInstance on success.

func UpdateInstance

func UpdateInstance(
	ctx context.Context,
	client graphql.Client,
	instanceId uuid.UUID,
	input InstanceInput,
	channelsFirst int,
	channelsAfter string,
	likesFirst int,
	likesAfter string,
	authorsFirst int,
	authorsAfter string,
	authorsRoles []Role,
	messagesLast int,
	messagesBefore string,
) (*UpdateInstanceResponse, error)

func (*UpdateInstanceResponse) GetUpdateInstance

GetUpdateInstance returns UpdateInstanceResponse.UpdateInstance, and is useful for accessing the field via an interface.

type UpdateInstanceUpdateInstanceUserInstancesEdge

type UpdateInstanceUpdateInstanceUserInstancesEdge struct {
	UserInstancesEdgeFragment `json:"-"`
}

UpdateInstanceUpdateInstanceUserInstancesEdge includes the requested fields of the GraphQL type UserInstancesEdge.

func (*UpdateInstanceUpdateInstanceUserInstancesEdge) GetCursor

GetCursor returns UpdateInstanceUpdateInstanceUserInstancesEdge.Cursor, and is useful for accessing the field via an interface.

func (*UpdateInstanceUpdateInstanceUserInstancesEdge) GetInstanceUser

GetInstanceUser returns UpdateInstanceUpdateInstanceUserInstancesEdge.InstanceUser, and is useful for accessing the field via an interface.

func (*UpdateInstanceUpdateInstanceUserInstancesEdge) GetLikedByMe

GetLikedByMe returns UpdateInstanceUpdateInstanceUserInstancesEdge.LikedByMe, and is useful for accessing the field via an interface.

func (*UpdateInstanceUpdateInstanceUserInstancesEdge) GetNode

GetNode returns UpdateInstanceUpdateInstanceUserInstancesEdge.Node, and is useful for accessing the field via an interface.

func (*UpdateInstanceUpdateInstanceUserInstancesEdge) GetPinned

GetPinned returns UpdateInstanceUpdateInstanceUserInstancesEdge.Pinned, and is useful for accessing the field via an interface.

func (*UpdateInstanceUpdateInstanceUserInstancesEdge) GetRank

GetRank returns UpdateInstanceUpdateInstanceUserInstancesEdge.Rank, and is useful for accessing the field via an interface.

func (*UpdateInstanceUpdateInstanceUserInstancesEdge) MarshalJSON

func (*UpdateInstanceUpdateInstanceUserInstancesEdge) UnmarshalJSON

type UpdateUserResponse

type UpdateUserResponse struct {
	UpdateUser UpdateUserUpdateUser `json:"updateUser"`
}

UpdateUserResponse is returned by UpdateUser on success.

func UpdateUser

func UpdateUser(
	ctx context.Context,
	client graphql.Client,
	input UserInput,
	instancesFirst int,
	instancesAfter string,
	channelsFirst int,
	channelsAfter string,
	likesFirst int,
	likesAfter string,
	authorsFirst int,
	authorsAfter string,
	authorsRoles []Role,
	messagesLast int,
	messagesBefore string,
	notificationsLast int,
	notificationsBefore string,
) (*UpdateUserResponse, error)

func (*UpdateUserResponse) GetUpdateUser

func (v *UpdateUserResponse) GetUpdateUser() UpdateUserUpdateUser

GetUpdateUser returns UpdateUserResponse.UpdateUser, and is useful for accessing the field via an interface.

type UpdateUserUpdateUser

type UpdateUserUpdateUser struct {
	UserFragment `json:"-"`
}

UpdateUserUpdateUser includes the requested fields of the GraphQL type User.

func (*UpdateUserUpdateUser) GetAvatar

func (v *UpdateUserUpdateUser) GetAvatar() string

GetAvatar returns UpdateUserUpdateUser.Avatar, and is useful for accessing the field via an interface.

func (*UpdateUserUpdateUser) GetBio

func (v *UpdateUserUpdateUser) GetBio() string

GetBio returns UpdateUserUpdateUser.Bio, and is useful for accessing the field via an interface.

func (*UpdateUserUpdateUser) GetId

func (v *UpdateUserUpdateUser) GetId() uuid.UUID

GetId returns UpdateUserUpdateUser.Id, and is useful for accessing the field via an interface.

func (*UpdateUserUpdateUser) GetInstancesConnection

GetInstancesConnection returns UpdateUserUpdateUser.InstancesConnection, and is useful for accessing the field via an interface.

func (*UpdateUserUpdateUser) GetName

func (v *UpdateUserUpdateUser) GetName() string

GetName returns UpdateUserUpdateUser.Name, and is useful for accessing the field via an interface.

func (*UpdateUserUpdateUser) GetNotificationsConnection

GetNotificationsConnection returns UpdateUserUpdateUser.NotificationsConnection, and is useful for accessing the field via an interface.

func (*UpdateUserUpdateUser) GetUid

func (v *UpdateUserUpdateUser) GetUid() string

GetUid returns UpdateUserUpdateUser.Uid, and is useful for accessing the field via an interface.

func (*UpdateUserUpdateUser) MarshalJSON

func (v *UpdateUserUpdateUser) MarshalJSON() ([]byte, error)

func (*UpdateUserUpdateUser) UnmarshalJSON

func (v *UpdateUserUpdateUser) UnmarshalJSON(b []byte) error

type UserFragment

type UserFragment struct {
	Id                      uuid.UUID                                                      `json:"id"`
	Name                    string                                                         `json:"name"`
	Avatar                  string                                                         `json:"avatar"`
	Bio                     string                                                         `json:"bio"`
	Uid                     string                                                         `json:"uid"`
	InstancesConnection     UserFragmentInstancesConnectionUserInstancesConnection         `json:"instancesConnection"`
	NotificationsConnection UserFragmentNotificationsConnectionUserNotificationsConnection `json:"notificationsConnection"`
}

UserFragment includes the GraphQL fields of User requested by the fragment UserFragment.

func (*UserFragment) GetAvatar

func (v *UserFragment) GetAvatar() string

GetAvatar returns UserFragment.Avatar, and is useful for accessing the field via an interface.

func (*UserFragment) GetBio

func (v *UserFragment) GetBio() string

GetBio returns UserFragment.Bio, and is useful for accessing the field via an interface.

func (*UserFragment) GetId

func (v *UserFragment) GetId() uuid.UUID

GetId returns UserFragment.Id, and is useful for accessing the field via an interface.

func (*UserFragment) GetInstancesConnection

GetInstancesConnection returns UserFragment.InstancesConnection, and is useful for accessing the field via an interface.

func (*UserFragment) GetName

func (v *UserFragment) GetName() string

GetName returns UserFragment.Name, and is useful for accessing the field via an interface.

func (*UserFragment) GetNotificationsConnection

GetNotificationsConnection returns UserFragment.NotificationsConnection, and is useful for accessing the field via an interface.

func (*UserFragment) GetUid

func (v *UserFragment) GetUid() string

GetUid returns UserFragment.Uid, and is useful for accessing the field via an interface.

type UserFragmentInstancesConnectionUserInstancesConnection

type UserFragmentInstancesConnectionUserInstancesConnection struct {
	Edges    []UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge `json:"edges"`
	PageInfo UserFragmentInstancesConnectionUserInstancesConnectionPageInfo                 `json:"pageInfo"`
}

UserFragmentInstancesConnectionUserInstancesConnection includes the requested fields of the GraphQL type UserInstancesConnection.

func (*UserFragmentInstancesConnectionUserInstancesConnection) GetEdges

GetEdges returns UserFragmentInstancesConnectionUserInstancesConnection.Edges, and is useful for accessing the field via an interface.

func (*UserFragmentInstancesConnectionUserInstancesConnection) GetPageInfo

GetPageInfo returns UserFragmentInstancesConnectionUserInstancesConnection.PageInfo, and is useful for accessing the field via an interface.

type UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge

type UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge struct {
	UserInstancesEdgeFragment `json:"-"`
}

UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge includes the requested fields of the GraphQL type UserInstancesEdge.

func (*UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge) GetCursor

GetCursor returns UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge.Cursor, and is useful for accessing the field via an interface.

func (*UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge) GetInstanceUser

GetInstanceUser returns UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge.InstanceUser, and is useful for accessing the field via an interface.

func (*UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge) GetLikedByMe

GetLikedByMe returns UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge.LikedByMe, and is useful for accessing the field via an interface.

func (*UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge) GetNode

GetNode returns UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge.Node, and is useful for accessing the field via an interface.

func (*UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge) GetPinned

GetPinned returns UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge.Pinned, and is useful for accessing the field via an interface.

func (*UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge) GetRank

GetRank returns UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge.Rank, and is useful for accessing the field via an interface.

func (*UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge) MarshalJSON

func (*UserFragmentInstancesConnectionUserInstancesConnectionEdgesUserInstancesEdge) UnmarshalJSON

type UserFragmentInstancesConnectionUserInstancesConnectionPageInfo

type UserFragmentInstancesConnectionUserInstancesConnectionPageInfo struct {
	PageInfoFragment `json:"-"`
}

UserFragmentInstancesConnectionUserInstancesConnectionPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*UserFragmentInstancesConnectionUserInstancesConnectionPageInfo) GetHasNextPage

GetHasNextPage returns UserFragmentInstancesConnectionUserInstancesConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

func (*UserFragmentInstancesConnectionUserInstancesConnectionPageInfo) GetHasPreviousPage

GetHasPreviousPage returns UserFragmentInstancesConnectionUserInstancesConnectionPageInfo.HasPreviousPage, and is useful for accessing the field via an interface.

func (*UserFragmentInstancesConnectionUserInstancesConnectionPageInfo) MarshalJSON

func (*UserFragmentInstancesConnectionUserInstancesConnectionPageInfo) UnmarshalJSON

type UserFragmentNotificationsConnectionUserNotificationsConnection

type UserFragmentNotificationsConnectionUserNotificationsConnection struct {
	Edges     []UserFragmentNotificationsConnectionUserNotificationsConnectionEdgesUserNotificationsEdge `json:"edges"`
	PageInfo  UserFragmentNotificationsConnectionUserNotificationsConnectionPageInfo                     `json:"pageInfo"`
	HasUnread bool                                                                                       `json:"hasUnread"`
}

UserFragmentNotificationsConnectionUserNotificationsConnection includes the requested fields of the GraphQL type UserNotificationsConnection.

func (*UserFragmentNotificationsConnectionUserNotificationsConnection) GetEdges

GetEdges returns UserFragmentNotificationsConnectionUserNotificationsConnection.Edges, and is useful for accessing the field via an interface.

func (*UserFragmentNotificationsConnectionUserNotificationsConnection) GetHasUnread

GetHasUnread returns UserFragmentNotificationsConnectionUserNotificationsConnection.HasUnread, and is useful for accessing the field via an interface.

func (*UserFragmentNotificationsConnectionUserNotificationsConnection) GetPageInfo

GetPageInfo returns UserFragmentNotificationsConnectionUserNotificationsConnection.PageInfo, and is useful for accessing the field via an interface.

type UserFragmentNotificationsConnectionUserNotificationsConnectionEdgesUserNotificationsEdge

type UserFragmentNotificationsConnectionUserNotificationsConnectionEdgesUserNotificationsEdge struct {
	UserNotificationsEdgeFragment `json:"-"`
}

UserFragmentNotificationsConnectionUserNotificationsConnectionEdgesUserNotificationsEdge includes the requested fields of the GraphQL type UserNotificationsEdge.

func (*UserFragmentNotificationsConnectionUserNotificationsConnectionEdgesUserNotificationsEdge) GetCursor

GetCursor returns UserFragmentNotificationsConnectionUserNotificationsConnectionEdgesUserNotificationsEdge.Cursor, and is useful for accessing the field via an interface.

func (*UserFragmentNotificationsConnectionUserNotificationsConnectionEdgesUserNotificationsEdge) GetNode

GetNode returns UserFragmentNotificationsConnectionUserNotificationsConnectionEdgesUserNotificationsEdge.Node, and is useful for accessing the field via an interface.

func (*UserFragmentNotificationsConnectionUserNotificationsConnectionEdgesUserNotificationsEdge) MarshalJSON

func (*UserFragmentNotificationsConnectionUserNotificationsConnectionEdgesUserNotificationsEdge) UnmarshalJSON

type UserFragmentNotificationsConnectionUserNotificationsConnectionPageInfo

type UserFragmentNotificationsConnectionUserNotificationsConnectionPageInfo struct {
	PageInfoFragment `json:"-"`
}

UserFragmentNotificationsConnectionUserNotificationsConnectionPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*UserFragmentNotificationsConnectionUserNotificationsConnectionPageInfo) GetHasNextPage

GetHasNextPage returns UserFragmentNotificationsConnectionUserNotificationsConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

func (*UserFragmentNotificationsConnectionUserNotificationsConnectionPageInfo) GetHasPreviousPage

GetHasPreviousPage returns UserFragmentNotificationsConnectionUserNotificationsConnectionPageInfo.HasPreviousPage, and is useful for accessing the field via an interface.

func (*UserFragmentNotificationsConnectionUserNotificationsConnectionPageInfo) MarshalJSON

func (*UserFragmentNotificationsConnectionUserNotificationsConnectionPageInfo) UnmarshalJSON

type UserInput

type UserInput struct {
	Name   string `json:"name"`
	Avatar string `json:"avatar"`
	Bio    string `json:"bio"`
}

func (*UserInput) GetAvatar

func (v *UserInput) GetAvatar() string

GetAvatar returns UserInput.Avatar, and is useful for accessing the field via an interface.

func (*UserInput) GetBio

func (v *UserInput) GetBio() string

GetBio returns UserInput.Bio, and is useful for accessing the field via an interface.

func (*UserInput) GetName

func (v *UserInput) GetName() string

GetName returns UserInput.Name, and is useful for accessing the field via an interface.

type UserInstancesEdgeFragment

type UserInstancesEdgeFragment struct {
	Cursor       string                                      `json:"cursor"`
	Node         UserInstancesEdgeFragmentNodeInstance       `json:"node"`
	InstanceUser UserInstancesEdgeFragmentInstanceUserAuthor `json:"instanceUser"`
	Rank         string                                      `json:"rank"`
	Pinned       bool                                        `json:"pinned"`
	LikedByMe    bool                                        `json:"likedByMe"`
}

UserInstancesEdgeFragment includes the GraphQL fields of UserInstancesEdge requested by the fragment UserInstancesEdgeFragment.

func (*UserInstancesEdgeFragment) GetCursor

func (v *UserInstancesEdgeFragment) GetCursor() string

GetCursor returns UserInstancesEdgeFragment.Cursor, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragment) GetInstanceUser

GetInstanceUser returns UserInstancesEdgeFragment.InstanceUser, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragment) GetLikedByMe

func (v *UserInstancesEdgeFragment) GetLikedByMe() bool

GetLikedByMe returns UserInstancesEdgeFragment.LikedByMe, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragment) GetNode

GetNode returns UserInstancesEdgeFragment.Node, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragment) GetPinned

func (v *UserInstancesEdgeFragment) GetPinned() bool

GetPinned returns UserInstancesEdgeFragment.Pinned, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragment) GetRank

func (v *UserInstancesEdgeFragment) GetRank() string

GetRank returns UserInstancesEdgeFragment.Rank, and is useful for accessing the field via an interface.

type UserInstancesEdgeFragmentInstanceUserAuthor

type UserInstancesEdgeFragmentInstanceUserAuthor struct {
	AuthorFragment `json:"-"`
}

UserInstancesEdgeFragmentInstanceUserAuthor includes the requested fields of the GraphQL type Author.

func (*UserInstancesEdgeFragmentInstanceUserAuthor) GetAvatar

GetAvatar returns UserInstancesEdgeFragmentInstanceUserAuthor.Avatar, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentInstanceUserAuthor) GetBio

GetBio returns UserInstancesEdgeFragmentInstanceUserAuthor.Bio, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentInstanceUserAuthor) GetCreatedAt

GetCreatedAt returns UserInstancesEdgeFragmentInstanceUserAuthor.CreatedAt, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentInstanceUserAuthor) GetId

GetId returns UserInstancesEdgeFragmentInstanceUserAuthor.Id, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentInstanceUserAuthor) GetInstanceId

GetInstanceId returns UserInstancesEdgeFragmentInstanceUserAuthor.InstanceId, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentInstanceUserAuthor) GetName

GetName returns UserInstancesEdgeFragmentInstanceUserAuthor.Name, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentInstanceUserAuthor) GetRoles

GetRoles returns UserInstancesEdgeFragmentInstanceUserAuthor.Roles, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentInstanceUserAuthor) GetUserId

GetUserId returns UserInstancesEdgeFragmentInstanceUserAuthor.UserId, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentInstanceUserAuthor) MarshalJSON

func (*UserInstancesEdgeFragmentInstanceUserAuthor) UnmarshalJSON

type UserInstancesEdgeFragmentNodeInstance

type UserInstancesEdgeFragmentNodeInstance struct {
	InstanceFragment `json:"-"`
}

UserInstancesEdgeFragmentNodeInstance includes the requested fields of the GraphQL type Instance.

func (*UserInstancesEdgeFragmentNodeInstance) GetAuthor

GetAuthor returns UserInstancesEdgeFragmentNodeInstance.Author, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetAuthorsConnection

GetAuthorsConnection returns UserInstancesEdgeFragmentNodeInstance.AuthorsConnection, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetChannelsConnection

GetChannelsConnection returns UserInstancesEdgeFragmentNodeInstance.ChannelsConnection, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetCommentsCount

func (v *UserInstancesEdgeFragmentNodeInstance) GetCommentsCount() int

GetCommentsCount returns UserInstancesEdgeFragmentNodeInstance.CommentsCount, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetCreatedAt

GetCreatedAt returns UserInstancesEdgeFragmentNodeInstance.CreatedAt, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetDescription

func (v *UserInstancesEdgeFragmentNodeInstance) GetDescription() string

GetDescription returns UserInstancesEdgeFragmentNodeInstance.Description, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetIcon

GetIcon returns UserInstancesEdgeFragmentNodeInstance.Icon, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetId

GetId returns UserInstancesEdgeFragmentNodeInstance.Id, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetLikesConnection

GetLikesConnection returns UserInstancesEdgeFragmentNodeInstance.LikesConnection, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetLikesCount

func (v *UserInstancesEdgeFragmentNodeInstance) GetLikesCount() int

GetLikesCount returns UserInstancesEdgeFragmentNodeInstance.LikesCount, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetName

GetName returns UserInstancesEdgeFragmentNodeInstance.Name, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetReadAccess

func (v *UserInstancesEdgeFragmentNodeInstance) GetReadAccess() Access

GetReadAccess returns UserInstancesEdgeFragmentNodeInstance.ReadAccess, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetShowAuthor

func (v *UserInstancesEdgeFragmentNodeInstance) GetShowAuthor() bool

GetShowAuthor returns UserInstancesEdgeFragmentNodeInstance.ShowAuthor, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetShowChat

GetShowChat returns UserInstancesEdgeFragmentNodeInstance.ShowChat, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetShowComments

func (v *UserInstancesEdgeFragmentNodeInstance) GetShowComments() bool

GetShowComments returns UserInstancesEdgeFragmentNodeInstance.ShowComments, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) GetShowLikes

func (v *UserInstancesEdgeFragmentNodeInstance) GetShowLikes() bool

GetShowLikes returns UserInstancesEdgeFragmentNodeInstance.ShowLikes, and is useful for accessing the field via an interface.

func (*UserInstancesEdgeFragmentNodeInstance) MarshalJSON

func (v *UserInstancesEdgeFragmentNodeInstance) MarshalJSON() ([]byte, error)

func (*UserInstancesEdgeFragmentNodeInstance) UnmarshalJSON

func (v *UserInstancesEdgeFragmentNodeInstance) UnmarshalJSON(b []byte) error

type UserNotificationsEdgeFragment

type UserNotificationsEdgeFragment struct {
	Cursor string                                        `json:"cursor"`
	Node   UserNotificationsEdgeFragmentNodeNotification `json:"node"`
}

UserNotificationsEdgeFragment includes the GraphQL fields of UserNotificationsEdge requested by the fragment UserNotificationsEdgeFragment.

func (*UserNotificationsEdgeFragment) GetCursor

func (v *UserNotificationsEdgeFragment) GetCursor() string

GetCursor returns UserNotificationsEdgeFragment.Cursor, and is useful for accessing the field via an interface.

func (*UserNotificationsEdgeFragment) GetNode

GetNode returns UserNotificationsEdgeFragment.Node, and is useful for accessing the field via an interface.

type UserNotificationsEdgeFragmentNodeNotification

type UserNotificationsEdgeFragmentNodeNotification struct {
	NotificationFragment `json:"-"`
}

UserNotificationsEdgeFragmentNodeNotification includes the requested fields of the GraphQL type Notification.

func (*UserNotificationsEdgeFragmentNodeNotification) GetAuthor

GetAuthor returns UserNotificationsEdgeFragmentNodeNotification.Author, and is useful for accessing the field via an interface.

func (*UserNotificationsEdgeFragmentNodeNotification) GetCreatedAt

GetCreatedAt returns UserNotificationsEdgeFragmentNodeNotification.CreatedAt, and is useful for accessing the field via an interface.

func (*UserNotificationsEdgeFragmentNodeNotification) GetId

GetId returns UserNotificationsEdgeFragmentNodeNotification.Id, and is useful for accessing the field via an interface.

func (*UserNotificationsEdgeFragmentNodeNotification) GetInstance

GetInstance returns UserNotificationsEdgeFragmentNodeNotification.Instance, and is useful for accessing the field via an interface.

func (*UserNotificationsEdgeFragmentNodeNotification) GetKind

GetKind returns UserNotificationsEdgeFragmentNodeNotification.Kind, and is useful for accessing the field via an interface.

func (*UserNotificationsEdgeFragmentNodeNotification) GetMessage

GetMessage returns UserNotificationsEdgeFragmentNodeNotification.Message, and is useful for accessing the field via an interface.

func (*UserNotificationsEdgeFragmentNodeNotification) MarshalJSON

func (*UserNotificationsEdgeFragmentNodeNotification) UnmarshalJSON

type UserResponse

type UserResponse struct {
	User UserUser `json:"user"`
}

UserResponse is returned by User on success.

func User

func User(
	ctx context.Context,
	client graphql.Client,
	instancesFirst int,
	instancesAfter string,
	channelsFirst int,
	channelsAfter string,
	likesFirst int,
	likesAfter string,
	authorsFirst int,
	authorsAfter string,
	authorsRoles []Role,
	messagesLast int,
	messagesBefore string,
	notificationsLast int,
	notificationsBefore string,
) (*UserResponse, error)

func (*UserResponse) GetUser

func (v *UserResponse) GetUser() UserUser

GetUser returns UserResponse.User, and is useful for accessing the field via an interface.

type UserUser

type UserUser struct {
	UserFragment `json:"-"`
}

UserUser includes the requested fields of the GraphQL type User.

func (*UserUser) GetAvatar

func (v *UserUser) GetAvatar() string

GetAvatar returns UserUser.Avatar, and is useful for accessing the field via an interface.

func (*UserUser) GetBio

func (v *UserUser) GetBio() string

GetBio returns UserUser.Bio, and is useful for accessing the field via an interface.

func (*UserUser) GetId

func (v *UserUser) GetId() uuid.UUID

GetId returns UserUser.Id, and is useful for accessing the field via an interface.

func (*UserUser) GetInstancesConnection

GetInstancesConnection returns UserUser.InstancesConnection, and is useful for accessing the field via an interface.

func (*UserUser) GetName

func (v *UserUser) GetName() string

GetName returns UserUser.Name, and is useful for accessing the field via an interface.

func (*UserUser) GetNotificationsConnection

GetNotificationsConnection returns UserUser.NotificationsConnection, and is useful for accessing the field via an interface.

func (*UserUser) GetUid

func (v *UserUser) GetUid() string

GetUid returns UserUser.Uid, and is useful for accessing the field via an interface.

func (*UserUser) MarshalJSON

func (v *UserUser) MarshalJSON() ([]byte, error)

func (*UserUser) UnmarshalJSON

func (v *UserUser) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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