Documentation ¶
Index ¶
- Variables
- type AuthData
- func (*AuthData) Descriptor() ([]byte, []int)deprecated
- func (x *AuthData) GetServerId() string
- func (x *AuthData) GetTime() uint64
- func (m *AuthData) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AuthData) MarshalToVT(dAtA []byte) (int, error)
- func (m *AuthData) MarshalVT() (dAtA []byte, err error)
- func (*AuthData) ProtoMessage()
- func (x *AuthData) ProtoReflect() protoreflect.Message
- func (x *AuthData) Reset()
- func (m *AuthData) SizeVT() (n int)
- func (x *AuthData) String() string
- func (m *AuthData) UnmarshalVT(dAtA []byte) error
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (m *Event) GetKind() isEvent_Kind
- func (x *Event) GetUserAddedToGuild() *Event_UserAddedToGuild
- func (x *Event) GetUserInvited() *Event_UserInvited
- func (x *Event) GetUserRejectedInvite() *Event_UserRejectedInvite
- func (x *Event) GetUserRemovedFromGuild() *Event_UserRemovedFromGuild
- func (m *Event) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Event) MarshalToVT(dAtA []byte) (int, error)
- func (m *Event) MarshalVT() (dAtA []byte, err error)
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (m *Event) SizeVT() (n int)
- func (x *Event) String() string
- func (m *Event) UnmarshalVT(dAtA []byte) error
- type Event_UserAddedToGuild
- func (*Event_UserAddedToGuild) Descriptor() ([]byte, []int)deprecated
- func (x *Event_UserAddedToGuild) GetGuildId() uint64
- func (x *Event_UserAddedToGuild) GetUserId() uint64
- func (m *Event_UserAddedToGuild) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Event_UserAddedToGuild) MarshalToVT(dAtA []byte) (int, error)
- func (m *Event_UserAddedToGuild) MarshalVT() (dAtA []byte, err error)
- func (*Event_UserAddedToGuild) ProtoMessage()
- func (x *Event_UserAddedToGuild) ProtoReflect() protoreflect.Message
- func (x *Event_UserAddedToGuild) Reset()
- func (m *Event_UserAddedToGuild) SizeVT() (n int)
- func (x *Event_UserAddedToGuild) String() string
- func (m *Event_UserAddedToGuild) UnmarshalVT(dAtA []byte) error
- type Event_UserAddedToGuild_
- type Event_UserInvited
- func (*Event_UserInvited) Descriptor() ([]byte, []int)deprecated
- func (x *Event_UserInvited) GetInviteId() string
- func (x *Event_UserInvited) GetInviterId() uint64
- func (x *Event_UserInvited) GetUserId() uint64
- func (m *Event_UserInvited) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Event_UserInvited) MarshalToVT(dAtA []byte) (int, error)
- func (m *Event_UserInvited) MarshalVT() (dAtA []byte, err error)
- func (*Event_UserInvited) ProtoMessage()
- func (x *Event_UserInvited) ProtoReflect() protoreflect.Message
- func (x *Event_UserInvited) Reset()
- func (m *Event_UserInvited) SizeVT() (n int)
- func (x *Event_UserInvited) String() string
- func (m *Event_UserInvited) UnmarshalVT(dAtA []byte) error
- type Event_UserInvited_
- type Event_UserRejectedInvite
- func (*Event_UserRejectedInvite) Descriptor() ([]byte, []int)deprecated
- func (x *Event_UserRejectedInvite) GetGuildId() uint64
- func (x *Event_UserRejectedInvite) GetInviteId() string
- func (x *Event_UserRejectedInvite) GetUserId() uint64
- func (m *Event_UserRejectedInvite) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Event_UserRejectedInvite) MarshalToVT(dAtA []byte) (int, error)
- func (m *Event_UserRejectedInvite) MarshalVT() (dAtA []byte, err error)
- func (*Event_UserRejectedInvite) ProtoMessage()
- func (x *Event_UserRejectedInvite) ProtoReflect() protoreflect.Message
- func (x *Event_UserRejectedInvite) Reset()
- func (m *Event_UserRejectedInvite) SizeVT() (n int)
- func (x *Event_UserRejectedInvite) String() string
- func (m *Event_UserRejectedInvite) UnmarshalVT(dAtA []byte) error
- type Event_UserRejectedInvite_
- type Event_UserRemovedFromGuild
- func (*Event_UserRemovedFromGuild) Descriptor() ([]byte, []int)deprecated
- func (x *Event_UserRemovedFromGuild) GetGuildId() uint64
- func (x *Event_UserRemovedFromGuild) GetUserId() uint64
- func (m *Event_UserRemovedFromGuild) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Event_UserRemovedFromGuild) MarshalToVT(dAtA []byte) (int, error)
- func (m *Event_UserRemovedFromGuild) MarshalVT() (dAtA []byte, err error)
- func (*Event_UserRemovedFromGuild) ProtoMessage()
- func (x *Event_UserRemovedFromGuild) ProtoReflect() protoreflect.Message
- func (x *Event_UserRemovedFromGuild) Reset()
- func (m *Event_UserRemovedFromGuild) SizeVT() (n int)
- func (x *Event_UserRemovedFromGuild) String() string
- func (m *Event_UserRemovedFromGuild) UnmarshalVT(dAtA []byte) error
- type Event_UserRemovedFromGuild_
- type NotifyNewIdRequest
- func (*NotifyNewIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotifyNewIdRequest) GetNewServerId() string
- func (m *NotifyNewIdRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *NotifyNewIdRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *NotifyNewIdRequest) MarshalVT() (dAtA []byte, err error)
- func (*NotifyNewIdRequest) ProtoMessage()
- func (x *NotifyNewIdRequest) ProtoReflect() protoreflect.Message
- func (x *NotifyNewIdRequest) Reset()
- func (m *NotifyNewIdRequest) SizeVT() (n int)
- func (x *NotifyNewIdRequest) String() string
- func (m *NotifyNewIdRequest) UnmarshalVT(dAtA []byte) error
- type NotifyNewIdResponse
- func (*NotifyNewIdResponse) Descriptor() ([]byte, []int)deprecated
- func (m *NotifyNewIdResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *NotifyNewIdResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *NotifyNewIdResponse) MarshalVT() (dAtA []byte, err error)
- func (*NotifyNewIdResponse) ProtoMessage()
- func (x *NotifyNewIdResponse) ProtoReflect() protoreflect.Message
- func (x *NotifyNewIdResponse) Reset()
- func (m *NotifyNewIdResponse) SizeVT() (n int)
- func (x *NotifyNewIdResponse) String() string
- func (m *NotifyNewIdResponse) UnmarshalVT(dAtA []byte) error
- type PostboxService
- type PostboxServiceHandler
- type PullRequest
- func (*PullRequest) Descriptor() ([]byte, []int)deprecated
- func (m *PullRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PullRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *PullRequest) MarshalVT() (dAtA []byte, err error)
- func (*PullRequest) ProtoMessage()
- func (x *PullRequest) ProtoReflect() protoreflect.Message
- func (x *PullRequest) Reset()
- func (m *PullRequest) SizeVT() (n int)
- func (x *PullRequest) String() string
- func (m *PullRequest) UnmarshalVT(dAtA []byte) error
- type PullResponse
- func (*PullResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PullResponse) GetEventQueue() []*Event
- func (m *PullResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PullResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *PullResponse) MarshalVT() (dAtA []byte, err error)
- func (*PullResponse) ProtoMessage()
- func (x *PullResponse) ProtoReflect() protoreflect.Message
- func (x *PullResponse) Reset()
- func (m *PullResponse) SizeVT() (n int)
- func (x *PullResponse) String() string
- func (m *PullResponse) UnmarshalVT(dAtA []byte) error
- type PushRequest
- func (*PushRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PushRequest) GetEvent() *Event
- func (m *PushRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PushRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *PushRequest) MarshalVT() (dAtA []byte, err error)
- func (*PushRequest) ProtoMessage()
- func (x *PushRequest) ProtoReflect() protoreflect.Message
- func (x *PushRequest) Reset()
- func (m *PushRequest) SizeVT() (n int)
- func (x *PushRequest) String() string
- func (m *PushRequest) UnmarshalVT(dAtA []byte) error
- type PushResponse
- func (*PushResponse) Descriptor() ([]byte, []int)deprecated
- func (m *PushResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PushResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *PushResponse) MarshalVT() (dAtA []byte, err error)
- func (*PushResponse) ProtoMessage()
- func (x *PushResponse) ProtoReflect() protoreflect.Message
- func (x *PushResponse) Reset()
- func (m *PushResponse) SizeVT() (n int)
- func (x *PushResponse) String() string
- func (m *PushResponse) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_sync_v1_sync_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthData ¶
type AuthData struct { // The server ID of the server initiating the transaction. For Pull, // this tells the server being connected to which homeservers' events it should send. // For Push, this tells the server being connected to which homeservers' events it is // receiving. ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` // The UTC UNIX time in seconds of when the request is started. Servers should reject // tokens with a time too far from the current time, at their discretion. A recommended // variance is 1 minute. Time uint64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
Authentication data that will be sent in a `harmonytypes.v1.Token`.
func (*AuthData) Descriptor
deprecated
func (*AuthData) GetServerId ¶
func (*AuthData) MarshalToSizedBufferVT ¶
func (*AuthData) ProtoMessage ¶
func (*AuthData) ProtoMessage()
func (*AuthData) ProtoReflect ¶
func (x *AuthData) ProtoReflect() protoreflect.Message
func (*AuthData) UnmarshalVT ¶
type Event ¶
type Event struct { // The kind and data of this event. // // Types that are assignable to Kind: // *Event_UserRemovedFromGuild_ // *Event_UserAddedToGuild_ // *Event_UserInvited_ // *Event_UserRejectedInvite_ Kind isEvent_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
Object representing a postbox event.
func (*Event) Descriptor
deprecated
func (*Event) GetUserAddedToGuild ¶
func (x *Event) GetUserAddedToGuild() *Event_UserAddedToGuild
func (*Event) GetUserInvited ¶
func (x *Event) GetUserInvited() *Event_UserInvited
func (*Event) GetUserRejectedInvite ¶
func (x *Event) GetUserRejectedInvite() *Event_UserRejectedInvite
func (*Event) GetUserRemovedFromGuild ¶
func (x *Event) GetUserRemovedFromGuild() *Event_UserRemovedFromGuild
func (*Event) MarshalToSizedBufferVT ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
func (*Event) UnmarshalVT ¶
type Event_UserAddedToGuild ¶
type Event_UserAddedToGuild struct { // User ID of the user that was added. UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Guild ID of the guild where the user will be. GuildId uint64 `protobuf:"varint,2,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"` // contains filtered or unexported fields }
Event sent when a user is added to a guild.
func (*Event_UserAddedToGuild) Descriptor
deprecated
func (*Event_UserAddedToGuild) Descriptor() ([]byte, []int)
Deprecated: Use Event_UserAddedToGuild.ProtoReflect.Descriptor instead.
func (*Event_UserAddedToGuild) GetGuildId ¶
func (x *Event_UserAddedToGuild) GetGuildId() uint64
func (*Event_UserAddedToGuild) GetUserId ¶
func (x *Event_UserAddedToGuild) GetUserId() uint64
func (*Event_UserAddedToGuild) MarshalToSizedBufferVT ¶
func (m *Event_UserAddedToGuild) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Event_UserAddedToGuild) MarshalToVT ¶
func (m *Event_UserAddedToGuild) MarshalToVT(dAtA []byte) (int, error)
func (*Event_UserAddedToGuild) MarshalVT ¶
func (m *Event_UserAddedToGuild) MarshalVT() (dAtA []byte, err error)
func (*Event_UserAddedToGuild) ProtoMessage ¶
func (*Event_UserAddedToGuild) ProtoMessage()
func (*Event_UserAddedToGuild) ProtoReflect ¶
func (x *Event_UserAddedToGuild) ProtoReflect() protoreflect.Message
func (*Event_UserAddedToGuild) Reset ¶
func (x *Event_UserAddedToGuild) Reset()
func (*Event_UserAddedToGuild) SizeVT ¶
func (m *Event_UserAddedToGuild) SizeVT() (n int)
func (*Event_UserAddedToGuild) String ¶
func (x *Event_UserAddedToGuild) String() string
func (*Event_UserAddedToGuild) UnmarshalVT ¶
func (m *Event_UserAddedToGuild) UnmarshalVT(dAtA []byte) error
type Event_UserAddedToGuild_ ¶
type Event_UserAddedToGuild_ struct { // User added to a guild. UserAddedToGuild *Event_UserAddedToGuild `protobuf:"bytes,2,opt,name=user_added_to_guild,json=userAddedToGuild,proto3,oneof"` }
func (*Event_UserAddedToGuild_) MarshalToSizedBufferVT ¶
func (m *Event_UserAddedToGuild_) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Event_UserAddedToGuild_) MarshalToVT ¶
func (m *Event_UserAddedToGuild_) MarshalToVT(dAtA []byte) (int, error)
func (*Event_UserAddedToGuild_) SizeVT ¶
func (m *Event_UserAddedToGuild_) SizeVT() (n int)
type Event_UserInvited ¶
type Event_UserInvited struct { // User ID of the invitee. UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // User ID of the user that invited. InviterId uint64 `protobuf:"varint,2,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` // The unique identifier of a user's invite to another // user to join a given guild. InviteId string `protobuf:"bytes,3,opt,name=invite_id,json=inviteId,proto3" json:"invite_id,omitempty"` // contains filtered or unexported fields }
Event sent when a user is invited to a guild.
func (*Event_UserInvited) Descriptor
deprecated
func (*Event_UserInvited) Descriptor() ([]byte, []int)
Deprecated: Use Event_UserInvited.ProtoReflect.Descriptor instead.
func (*Event_UserInvited) GetInviteId ¶
func (x *Event_UserInvited) GetInviteId() string
func (*Event_UserInvited) GetInviterId ¶
func (x *Event_UserInvited) GetInviterId() uint64
func (*Event_UserInvited) GetUserId ¶
func (x *Event_UserInvited) GetUserId() uint64
func (*Event_UserInvited) MarshalToSizedBufferVT ¶
func (m *Event_UserInvited) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Event_UserInvited) MarshalToVT ¶
func (m *Event_UserInvited) MarshalToVT(dAtA []byte) (int, error)
func (*Event_UserInvited) MarshalVT ¶
func (m *Event_UserInvited) MarshalVT() (dAtA []byte, err error)
func (*Event_UserInvited) ProtoMessage ¶
func (*Event_UserInvited) ProtoMessage()
func (*Event_UserInvited) ProtoReflect ¶
func (x *Event_UserInvited) ProtoReflect() protoreflect.Message
func (*Event_UserInvited) Reset ¶
func (x *Event_UserInvited) Reset()
func (*Event_UserInvited) SizeVT ¶
func (m *Event_UserInvited) SizeVT() (n int)
func (*Event_UserInvited) String ¶
func (x *Event_UserInvited) String() string
func (*Event_UserInvited) UnmarshalVT ¶
func (m *Event_UserInvited) UnmarshalVT(dAtA []byte) error
type Event_UserInvited_ ¶
type Event_UserInvited_ struct { // User invited to a guild. UserInvited *Event_UserInvited `protobuf:"bytes,3,opt,name=user_invited,json=userInvited,proto3,oneof"` }
func (*Event_UserInvited_) MarshalToSizedBufferVT ¶
func (m *Event_UserInvited_) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Event_UserInvited_) MarshalToVT ¶
func (m *Event_UserInvited_) MarshalToVT(dAtA []byte) (int, error)
func (*Event_UserInvited_) SizeVT ¶
func (m *Event_UserInvited_) SizeVT() (n int)
type Event_UserRejectedInvite ¶
type Event_UserRejectedInvite struct { // Guild ID of the guild the invitee rejected an invite for. GuildId uint64 `protobuf:"varint,1,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"` // User ID of the invitee that rejected the invitation. UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Invite ID of the invite that was rejected. InviteId string `protobuf:"bytes,3,opt,name=invite_id,json=inviteId,proto3" json:"invite_id,omitempty"` // contains filtered or unexported fields }
Event sent when a user rejects a guild invitation.
func (*Event_UserRejectedInvite) Descriptor
deprecated
func (*Event_UserRejectedInvite) Descriptor() ([]byte, []int)
Deprecated: Use Event_UserRejectedInvite.ProtoReflect.Descriptor instead.
func (*Event_UserRejectedInvite) GetGuildId ¶
func (x *Event_UserRejectedInvite) GetGuildId() uint64
func (*Event_UserRejectedInvite) GetInviteId ¶
func (x *Event_UserRejectedInvite) GetInviteId() string
func (*Event_UserRejectedInvite) GetUserId ¶
func (x *Event_UserRejectedInvite) GetUserId() uint64
func (*Event_UserRejectedInvite) MarshalToSizedBufferVT ¶
func (m *Event_UserRejectedInvite) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Event_UserRejectedInvite) MarshalToVT ¶
func (m *Event_UserRejectedInvite) MarshalToVT(dAtA []byte) (int, error)
func (*Event_UserRejectedInvite) MarshalVT ¶
func (m *Event_UserRejectedInvite) MarshalVT() (dAtA []byte, err error)
func (*Event_UserRejectedInvite) ProtoMessage ¶
func (*Event_UserRejectedInvite) ProtoMessage()
func (*Event_UserRejectedInvite) ProtoReflect ¶
func (x *Event_UserRejectedInvite) ProtoReflect() protoreflect.Message
func (*Event_UserRejectedInvite) Reset ¶
func (x *Event_UserRejectedInvite) Reset()
func (*Event_UserRejectedInvite) SizeVT ¶
func (m *Event_UserRejectedInvite) SizeVT() (n int)
func (*Event_UserRejectedInvite) String ¶
func (x *Event_UserRejectedInvite) String() string
func (*Event_UserRejectedInvite) UnmarshalVT ¶
func (m *Event_UserRejectedInvite) UnmarshalVT(dAtA []byte) error
type Event_UserRejectedInvite_ ¶
type Event_UserRejectedInvite_ struct { // User rejected a guild invitation. UserRejectedInvite *Event_UserRejectedInvite `protobuf:"bytes,4,opt,name=user_rejected_invite,json=userRejectedInvite,proto3,oneof"` }
func (*Event_UserRejectedInvite_) MarshalToSizedBufferVT ¶
func (m *Event_UserRejectedInvite_) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Event_UserRejectedInvite_) MarshalToVT ¶
func (m *Event_UserRejectedInvite_) MarshalToVT(dAtA []byte) (int, error)
func (*Event_UserRejectedInvite_) SizeVT ¶
func (m *Event_UserRejectedInvite_) SizeVT() (n int)
type Event_UserRemovedFromGuild ¶
type Event_UserRemovedFromGuild struct { // User ID of the user that was removed. UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Guild ID of the guild where the user was. GuildId uint64 `protobuf:"varint,2,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"` // contains filtered or unexported fields }
Event sent when a user is removed from a guild.
func (*Event_UserRemovedFromGuild) Descriptor
deprecated
func (*Event_UserRemovedFromGuild) Descriptor() ([]byte, []int)
Deprecated: Use Event_UserRemovedFromGuild.ProtoReflect.Descriptor instead.
func (*Event_UserRemovedFromGuild) GetGuildId ¶
func (x *Event_UserRemovedFromGuild) GetGuildId() uint64
func (*Event_UserRemovedFromGuild) GetUserId ¶
func (x *Event_UserRemovedFromGuild) GetUserId() uint64
func (*Event_UserRemovedFromGuild) MarshalToSizedBufferVT ¶
func (m *Event_UserRemovedFromGuild) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Event_UserRemovedFromGuild) MarshalToVT ¶
func (m *Event_UserRemovedFromGuild) MarshalToVT(dAtA []byte) (int, error)
func (*Event_UserRemovedFromGuild) MarshalVT ¶
func (m *Event_UserRemovedFromGuild) MarshalVT() (dAtA []byte, err error)
func (*Event_UserRemovedFromGuild) ProtoMessage ¶
func (*Event_UserRemovedFromGuild) ProtoMessage()
func (*Event_UserRemovedFromGuild) ProtoReflect ¶
func (x *Event_UserRemovedFromGuild) ProtoReflect() protoreflect.Message
func (*Event_UserRemovedFromGuild) Reset ¶
func (x *Event_UserRemovedFromGuild) Reset()
func (*Event_UserRemovedFromGuild) SizeVT ¶
func (m *Event_UserRemovedFromGuild) SizeVT() (n int)
func (*Event_UserRemovedFromGuild) String ¶
func (x *Event_UserRemovedFromGuild) String() string
func (*Event_UserRemovedFromGuild) UnmarshalVT ¶
func (m *Event_UserRemovedFromGuild) UnmarshalVT(dAtA []byte) error
type Event_UserRemovedFromGuild_ ¶
type Event_UserRemovedFromGuild_ struct { // User removed from a guild. UserRemovedFromGuild *Event_UserRemovedFromGuild `protobuf:"bytes,1,opt,name=user_removed_from_guild,json=userRemovedFromGuild,proto3,oneof"` }
func (*Event_UserRemovedFromGuild_) MarshalToSizedBufferVT ¶
func (m *Event_UserRemovedFromGuild_) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Event_UserRemovedFromGuild_) MarshalToVT ¶
func (m *Event_UserRemovedFromGuild_) MarshalToVT(dAtA []byte) (int, error)
func (*Event_UserRemovedFromGuild_) SizeVT ¶
func (m *Event_UserRemovedFromGuild_) SizeVT() (n int)
type NotifyNewIdRequest ¶
type NotifyNewIdRequest struct { // The new server ID of the server. NewServerId string `protobuf:"bytes,1,opt,name=new_server_id,json=newServerId,proto3" json:"new_server_id,omitempty"` // contains filtered or unexported fields }
Used in `NotifyNewId` endpoint.
func (*NotifyNewIdRequest) Descriptor
deprecated
func (*NotifyNewIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotifyNewIdRequest.ProtoReflect.Descriptor instead.
func (*NotifyNewIdRequest) GetNewServerId ¶
func (x *NotifyNewIdRequest) GetNewServerId() string
func (*NotifyNewIdRequest) MarshalToSizedBufferVT ¶
func (m *NotifyNewIdRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*NotifyNewIdRequest) MarshalToVT ¶
func (m *NotifyNewIdRequest) MarshalToVT(dAtA []byte) (int, error)
func (*NotifyNewIdRequest) MarshalVT ¶
func (m *NotifyNewIdRequest) MarshalVT() (dAtA []byte, err error)
func (*NotifyNewIdRequest) ProtoMessage ¶
func (*NotifyNewIdRequest) ProtoMessage()
func (*NotifyNewIdRequest) ProtoReflect ¶
func (x *NotifyNewIdRequest) ProtoReflect() protoreflect.Message
func (*NotifyNewIdRequest) Reset ¶
func (x *NotifyNewIdRequest) Reset()
func (*NotifyNewIdRequest) SizeVT ¶
func (m *NotifyNewIdRequest) SizeVT() (n int)
func (*NotifyNewIdRequest) String ¶
func (x *NotifyNewIdRequest) String() string
func (*NotifyNewIdRequest) UnmarshalVT ¶
func (m *NotifyNewIdRequest) UnmarshalVT(dAtA []byte) error
type NotifyNewIdResponse ¶
type NotifyNewIdResponse struct {
// contains filtered or unexported fields
}
Used in `NotifyNewId` endpoint.
func (*NotifyNewIdResponse) Descriptor
deprecated
func (*NotifyNewIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotifyNewIdResponse.ProtoReflect.Descriptor instead.
func (*NotifyNewIdResponse) MarshalToSizedBufferVT ¶
func (m *NotifyNewIdResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*NotifyNewIdResponse) MarshalToVT ¶
func (m *NotifyNewIdResponse) MarshalToVT(dAtA []byte) (int, error)
func (*NotifyNewIdResponse) MarshalVT ¶
func (m *NotifyNewIdResponse) MarshalVT() (dAtA []byte, err error)
func (*NotifyNewIdResponse) ProtoMessage ¶
func (*NotifyNewIdResponse) ProtoMessage()
func (*NotifyNewIdResponse) ProtoReflect ¶
func (x *NotifyNewIdResponse) ProtoReflect() protoreflect.Message
func (*NotifyNewIdResponse) Reset ¶
func (x *NotifyNewIdResponse) Reset()
func (*NotifyNewIdResponse) SizeVT ¶
func (m *NotifyNewIdResponse) SizeVT() (n int)
func (*NotifyNewIdResponse) String ¶
func (x *NotifyNewIdResponse) String() string
func (*NotifyNewIdResponse) UnmarshalVT ¶
func (m *NotifyNewIdResponse) UnmarshalVT(dAtA []byte) error
type PostboxService ¶
type PostboxService[T context.Context] interface { Pull(T, *PullRequest) (*PullResponse, error) Push(T, *PushRequest) (*PushResponse, error) NotifyNewId(T, *NotifyNewIdRequest) (*NotifyNewIdResponse, error) }
type PostboxServiceHandler ¶
type PostboxServiceHandler[T context.Context] struct { Impl PostboxService[T] }
func (*PostboxServiceHandler[T]) Routes ¶
func (h *PostboxServiceHandler[T]) Routes() map[string]goserver.UnaryMethodData[T]
func (*PostboxServiceHandler[T]) StreamRoutes ¶
func (h *PostboxServiceHandler[T]) StreamRoutes() map[string]goserver.StreamMethodData[T]
type PullRequest ¶
type PullRequest struct {
// contains filtered or unexported fields
}
Used in `Pull` endpoint.
func (*PullRequest) Descriptor
deprecated
func (*PullRequest) Descriptor() ([]byte, []int)
Deprecated: Use PullRequest.ProtoReflect.Descriptor instead.
func (*PullRequest) MarshalToSizedBufferVT ¶
func (m *PullRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PullRequest) MarshalToVT ¶
func (m *PullRequest) MarshalToVT(dAtA []byte) (int, error)
func (*PullRequest) MarshalVT ¶
func (m *PullRequest) MarshalVT() (dAtA []byte, err error)
func (*PullRequest) ProtoMessage ¶
func (*PullRequest) ProtoMessage()
func (*PullRequest) ProtoReflect ¶
func (x *PullRequest) ProtoReflect() protoreflect.Message
func (*PullRequest) Reset ¶
func (x *PullRequest) Reset()
func (*PullRequest) SizeVT ¶
func (m *PullRequest) SizeVT() (n int)
func (*PullRequest) String ¶
func (x *PullRequest) String() string
func (*PullRequest) UnmarshalVT ¶
func (m *PullRequest) UnmarshalVT(dAtA []byte) error
type PullResponse ¶
type PullResponse struct { // The events that were not processed yet. EventQueue []*Event `protobuf:"bytes,1,rep,name=event_queue,json=eventQueue,proto3" json:"event_queue,omitempty"` // contains filtered or unexported fields }
Used in `Pull` endpoint.
func (*PullResponse) Descriptor
deprecated
func (*PullResponse) Descriptor() ([]byte, []int)
Deprecated: Use PullResponse.ProtoReflect.Descriptor instead.
func (*PullResponse) GetEventQueue ¶
func (x *PullResponse) GetEventQueue() []*Event
func (*PullResponse) MarshalToSizedBufferVT ¶
func (m *PullResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PullResponse) MarshalToVT ¶
func (m *PullResponse) MarshalToVT(dAtA []byte) (int, error)
func (*PullResponse) MarshalVT ¶
func (m *PullResponse) MarshalVT() (dAtA []byte, err error)
func (*PullResponse) ProtoMessage ¶
func (*PullResponse) ProtoMessage()
func (*PullResponse) ProtoReflect ¶
func (x *PullResponse) ProtoReflect() protoreflect.Message
func (*PullResponse) Reset ¶
func (x *PullResponse) Reset()
func (*PullResponse) SizeVT ¶
func (m *PullResponse) SizeVT() (n int)
func (*PullResponse) String ¶
func (x *PullResponse) String() string
func (*PullResponse) UnmarshalVT ¶
func (m *PullResponse) UnmarshalVT(dAtA []byte) error
type PushRequest ¶
type PushRequest struct { // The event to push to the server. Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
Used in `Push` endpoint.
func (*PushRequest) Descriptor
deprecated
func (*PushRequest) Descriptor() ([]byte, []int)
Deprecated: Use PushRequest.ProtoReflect.Descriptor instead.
func (*PushRequest) GetEvent ¶
func (x *PushRequest) GetEvent() *Event
func (*PushRequest) MarshalToSizedBufferVT ¶
func (m *PushRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PushRequest) MarshalToVT ¶
func (m *PushRequest) MarshalToVT(dAtA []byte) (int, error)
func (*PushRequest) MarshalVT ¶
func (m *PushRequest) MarshalVT() (dAtA []byte, err error)
func (*PushRequest) ProtoMessage ¶
func (*PushRequest) ProtoMessage()
func (*PushRequest) ProtoReflect ¶
func (x *PushRequest) ProtoReflect() protoreflect.Message
func (*PushRequest) Reset ¶
func (x *PushRequest) Reset()
func (*PushRequest) SizeVT ¶
func (m *PushRequest) SizeVT() (n int)
func (*PushRequest) String ¶
func (x *PushRequest) String() string
func (*PushRequest) UnmarshalVT ¶
func (m *PushRequest) UnmarshalVT(dAtA []byte) error
type PushResponse ¶
type PushResponse struct {
// contains filtered or unexported fields
}
Used in `Push` endpoint.
func (*PushResponse) Descriptor
deprecated
func (*PushResponse) Descriptor() ([]byte, []int)
Deprecated: Use PushResponse.ProtoReflect.Descriptor instead.
func (*PushResponse) MarshalToSizedBufferVT ¶
func (m *PushResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PushResponse) MarshalToVT ¶
func (m *PushResponse) MarshalToVT(dAtA []byte) (int, error)
func (*PushResponse) MarshalVT ¶
func (m *PushResponse) MarshalVT() (dAtA []byte, err error)
func (*PushResponse) ProtoMessage ¶
func (*PushResponse) ProtoMessage()
func (*PushResponse) ProtoReflect ¶
func (x *PushResponse) ProtoReflect() protoreflect.Message
func (*PushResponse) Reset ¶
func (x *PushResponse) Reset()
func (*PushResponse) SizeVT ¶
func (m *PushResponse) SizeVT() (n int)
func (*PushResponse) String ¶
func (x *PushResponse) String() string
func (*PushResponse) UnmarshalVT ¶
func (m *PushResponse) UnmarshalVT(dAtA []byte) error