Documentation ¶
Index ¶
- Variables
- func RegisterPlatformServer(s *grpc.Server, srv PlatformServer)
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetHidden() bool
- func (x *Category) GetID() string
- func (x *Category) GetName() string
- func (x *Category) GetPosition() int32
- func (x *Category) GetRoles() []string
- func (x *Category) GetType() Category_CategoryType
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- type Category_CategoryType
- func (Category_CategoryType) Descriptor() protoreflect.EnumDescriptor
- func (x Category_CategoryType) Enum() *Category_CategoryType
- func (Category_CategoryType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Category_CategoryType) Number() protoreflect.EnumNumber
- func (x Category_CategoryType) String() string
- func (Category_CategoryType) Type() protoreflect.EnumType
- type GuildData
- func (*GuildData) Descriptor() ([]byte, []int)deprecated
- func (x *GuildData) GetCategories() []*Category
- func (x *GuildData) GetEntitlements() []string
- func (x *GuildData) GetID() string
- func (x *GuildData) GetMessage() string
- func (*GuildData) ProtoMessage()
- func (x *GuildData) ProtoReflect() protoreflect.Message
- func (x *GuildData) Reset()
- func (x *GuildData) String() string
- type GuildEnumeration
- func (*GuildEnumeration) Descriptor() ([]byte, []int)deprecated
- func (x *GuildEnumeration) GetGuilds() []*PresentableGuild
- func (*GuildEnumeration) ProtoMessage()
- func (x *GuildEnumeration) ProtoReflect() protoreflect.Message
- func (x *GuildEnumeration) Reset()
- func (x *GuildEnumeration) String() string
- type PlatformClient
- type PlatformServer
- type PresentableGuild
- func (*PresentableGuild) Descriptor() ([]byte, []int)deprecated
- func (x *PresentableGuild) GetData() *GuildData
- func (x *PresentableGuild) GetGuild() *shared.Guild
- func (x *PresentableGuild) GetID() string
- func (x *PresentableGuild) GetMember() *discord.Member
- func (x *PresentableGuild) GetRoles() *shared.GuildRoles
- func (*PresentableGuild) ProtoMessage()
- func (x *PresentableGuild) ProtoReflect() protoreflect.Message
- func (x *PresentableGuild) Reset()
- func (x *PresentableGuild) String() string
- type Roles
- type UnimplementedPlatformServer
- func (*UnimplementedPlatformServer) EnumerateMyGuilds(context.Context, *empty.Empty) (*GuildEnumeration, error)
- func (*UnimplementedPlatformServer) GetGuild(context.Context, *shared.IDQuery) (*PresentableGuild, error)
- func (*UnimplementedPlatformServer) GetGuildSlug(context.Context, *shared.IDQuery) (*shared.Guild, error)
- func (*UnimplementedPlatformServer) UpdateGuildData(context.Context, *GuildData) (*empty.Empty, error)
- func (*UnimplementedPlatformServer) UpdateMyRoles(context.Context, *UpdateRoles) (*empty.Empty, error)
- type UpdateEntitlement
- func (*UpdateEntitlement) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateEntitlement) GetName() string
- func (x *UpdateEntitlement) GetQuery() *shared.IDQuery
- func (x *UpdateEntitlement) GetState() bool
- func (*UpdateEntitlement) ProtoMessage()
- func (x *UpdateEntitlement) ProtoReflect() protoreflect.Message
- func (x *UpdateEntitlement) Reset()
- func (x *UpdateEntitlement) String() string
- type UpdateRoles
- func (*UpdateRoles) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoles) GetGuildID() string
- func (x *UpdateRoles) GetRoles() *Roles
- func (*UpdateRoles) ProtoMessage()
- func (x *UpdateRoles) ProtoReflect() protoreflect.Message
- func (x *UpdateRoles) Reset()
- func (x *UpdateRoles) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Category_CategoryType_name = map[int32]string{ 0: "multi", 1: "single", } Category_CategoryType_value = map[string]int32{ "multi": 0, "single": 1, } )
Enum value maps for Category_CategoryType.
var File_platform_platform_proto protoreflect.FileDescriptor
Functions ¶
func RegisterPlatformServer ¶
func RegisterPlatformServer(s *grpc.Server, srv PlatformServer)
Types ¶
type Category ¶
type Category struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` Hidden bool `protobuf:"varint,4,opt,name=hidden,proto3" json:"hidden,omitempty"` Type Category_CategoryType `protobuf:"varint,5,opt,name=type,proto3,enum=roleypoly.platform.Category_CategoryType" json:"type,omitempty"` Position int32 `protobuf:"varint,6,opt,name=position,proto3" json:"position,omitempty"` // contains filtered or unexported fields }
func (*Category) Descriptor
deprecated
func (*Category) GetPosition ¶ added in v1.1.0
func (*Category) GetType ¶ added in v1.1.0
func (x *Category) GetType() Category_CategoryType
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶ added in v1.9.0
func (x *Category) ProtoReflect() protoreflect.Message
type Category_CategoryType ¶ added in v1.1.0
type Category_CategoryType int32
const ( Category_multi Category_CategoryType = 0 Category_single Category_CategoryType = 1 )
func (Category_CategoryType) Descriptor ¶ added in v1.9.0
func (Category_CategoryType) Descriptor() protoreflect.EnumDescriptor
func (Category_CategoryType) Enum ¶ added in v1.9.0
func (x Category_CategoryType) Enum() *Category_CategoryType
func (Category_CategoryType) EnumDescriptor
deprecated
added in
v1.1.0
func (Category_CategoryType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Category_CategoryType.Descriptor instead.
func (Category_CategoryType) Number ¶ added in v1.9.0
func (x Category_CategoryType) Number() protoreflect.EnumNumber
func (Category_CategoryType) String ¶ added in v1.1.0
func (x Category_CategoryType) String() string
func (Category_CategoryType) Type ¶ added in v1.9.0
func (Category_CategoryType) Type() protoreflect.EnumType
type GuildData ¶
type GuildData struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Categories []*Category `protobuf:"bytes,3,rep,name=categories,proto3" json:"categories,omitempty"` Entitlements []string `protobuf:"bytes,4,rep,name=entitlements,proto3" json:"entitlements,omitempty"` // contains filtered or unexported fields }
func (*GuildData) Descriptor
deprecated
func (*GuildData) GetCategories ¶
func (*GuildData) GetEntitlements ¶ added in v1.1.0
func (*GuildData) GetMessage ¶
func (*GuildData) ProtoMessage ¶
func (*GuildData) ProtoMessage()
func (*GuildData) ProtoReflect ¶ added in v1.9.0
func (x *GuildData) ProtoReflect() protoreflect.Message
type GuildEnumeration ¶ added in v1.6.0
type GuildEnumeration struct { Guilds []*PresentableGuild `protobuf:"bytes,1,rep,name=guilds,proto3" json:"guilds,omitempty"` // contains filtered or unexported fields }
func (*GuildEnumeration) Descriptor
deprecated
added in
v1.6.0
func (*GuildEnumeration) Descriptor() ([]byte, []int)
Deprecated: Use GuildEnumeration.ProtoReflect.Descriptor instead.
func (*GuildEnumeration) GetGuilds ¶ added in v1.6.0
func (x *GuildEnumeration) GetGuilds() []*PresentableGuild
func (*GuildEnumeration) ProtoMessage ¶ added in v1.6.0
func (*GuildEnumeration) ProtoMessage()
func (*GuildEnumeration) ProtoReflect ¶ added in v1.9.0
func (x *GuildEnumeration) ProtoReflect() protoreflect.Message
func (*GuildEnumeration) Reset ¶ added in v1.6.0
func (x *GuildEnumeration) Reset()
func (*GuildEnumeration) String ¶ added in v1.6.0
func (x *GuildEnumeration) String() string
type PlatformClient ¶
type PlatformClient interface { EnumerateMyGuilds(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GuildEnumeration, error) GetGuildSlug(ctx context.Context, in *shared.IDQuery, opts ...grpc.CallOption) (*shared.Guild, error) GetGuild(ctx context.Context, in *shared.IDQuery, opts ...grpc.CallOption) (*PresentableGuild, error) UpdateMyRoles(ctx context.Context, in *UpdateRoles, opts ...grpc.CallOption) (*empty.Empty, error) UpdateGuildData(ctx context.Context, in *GuildData, opts ...grpc.CallOption) (*empty.Empty, error) }
PlatformClient is the client API for Platform service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPlatformClient ¶
func NewPlatformClient(cc grpc.ClientConnInterface) PlatformClient
type PlatformServer ¶
type PlatformServer interface { EnumerateMyGuilds(context.Context, *empty.Empty) (*GuildEnumeration, error) GetGuildSlug(context.Context, *shared.IDQuery) (*shared.Guild, error) GetGuild(context.Context, *shared.IDQuery) (*PresentableGuild, error) UpdateMyRoles(context.Context, *UpdateRoles) (*empty.Empty, error) UpdateGuildData(context.Context, *GuildData) (*empty.Empty, error) }
PlatformServer is the server API for Platform service.
type PresentableGuild ¶ added in v1.6.0
type PresentableGuild struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Guild *shared.Guild `protobuf:"bytes,2,opt,name=guild,proto3" json:"guild,omitempty"` Data *GuildData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Member *discord.Member `protobuf:"bytes,4,opt,name=member,proto3" json:"member,omitempty"` Roles *shared.GuildRoles `protobuf:"bytes,5,opt,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*PresentableGuild) Descriptor
deprecated
added in
v1.6.0
func (*PresentableGuild) Descriptor() ([]byte, []int)
Deprecated: Use PresentableGuild.ProtoReflect.Descriptor instead.
func (*PresentableGuild) GetData ¶ added in v1.6.0
func (x *PresentableGuild) GetData() *GuildData
func (*PresentableGuild) GetGuild ¶ added in v1.6.0
func (x *PresentableGuild) GetGuild() *shared.Guild
func (*PresentableGuild) GetID ¶ added in v1.6.0
func (x *PresentableGuild) GetID() string
func (*PresentableGuild) GetMember ¶ added in v1.6.0
func (x *PresentableGuild) GetMember() *discord.Member
func (*PresentableGuild) GetRoles ¶ added in v1.6.0
func (x *PresentableGuild) GetRoles() *shared.GuildRoles
func (*PresentableGuild) ProtoMessage ¶ added in v1.6.0
func (*PresentableGuild) ProtoMessage()
func (*PresentableGuild) ProtoReflect ¶ added in v1.9.0
func (x *PresentableGuild) ProtoReflect() protoreflect.Message
func (*PresentableGuild) Reset ¶ added in v1.6.0
func (x *PresentableGuild) Reset()
func (*PresentableGuild) String ¶ added in v1.6.0
func (x *PresentableGuild) String() string
type Roles ¶
type Roles struct { Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*Roles) Descriptor
deprecated
func (*Roles) ProtoMessage ¶
func (*Roles) ProtoMessage()
func (*Roles) ProtoReflect ¶ added in v1.9.0
func (x *Roles) ProtoReflect() protoreflect.Message
type UnimplementedPlatformServer ¶
type UnimplementedPlatformServer struct { }
UnimplementedPlatformServer can be embedded to have forward compatible implementations.
func (*UnimplementedPlatformServer) EnumerateMyGuilds ¶ added in v1.6.0
func (*UnimplementedPlatformServer) EnumerateMyGuilds(context.Context, *empty.Empty) (*GuildEnumeration, error)
func (*UnimplementedPlatformServer) GetGuild ¶
func (*UnimplementedPlatformServer) GetGuild(context.Context, *shared.IDQuery) (*PresentableGuild, error)
func (*UnimplementedPlatformServer) GetGuildSlug ¶ added in v1.6.0
func (*UnimplementedPlatformServer) UpdateGuildData ¶
func (*UnimplementedPlatformServer) UpdateMyRoles ¶ added in v1.6.0
func (*UnimplementedPlatformServer) UpdateMyRoles(context.Context, *UpdateRoles) (*empty.Empty, error)
type UpdateEntitlement ¶ added in v1.2.0
type UpdateEntitlement struct { Query *shared.IDQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` State bool `protobuf:"varint,3,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*UpdateEntitlement) Descriptor
deprecated
added in
v1.2.0
func (*UpdateEntitlement) Descriptor() ([]byte, []int)
Deprecated: Use UpdateEntitlement.ProtoReflect.Descriptor instead.
func (*UpdateEntitlement) GetName ¶ added in v1.2.0
func (x *UpdateEntitlement) GetName() string
func (*UpdateEntitlement) GetQuery ¶ added in v1.2.0
func (x *UpdateEntitlement) GetQuery() *shared.IDQuery
func (*UpdateEntitlement) GetState ¶ added in v1.2.0
func (x *UpdateEntitlement) GetState() bool
func (*UpdateEntitlement) ProtoMessage ¶ added in v1.2.0
func (*UpdateEntitlement) ProtoMessage()
func (*UpdateEntitlement) ProtoReflect ¶ added in v1.9.0
func (x *UpdateEntitlement) ProtoReflect() protoreflect.Message
func (*UpdateEntitlement) Reset ¶ added in v1.2.0
func (x *UpdateEntitlement) Reset()
func (*UpdateEntitlement) String ¶ added in v1.2.0
func (x *UpdateEntitlement) String() string
type UpdateRoles ¶ added in v1.6.0
type UpdateRoles struct { GuildID string `protobuf:"bytes,1,opt,name=guildID,proto3" json:"guildID,omitempty"` Roles *Roles `protobuf:"bytes,2,opt,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoles) Descriptor
deprecated
added in
v1.6.0
func (*UpdateRoles) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoles.ProtoReflect.Descriptor instead.
func (*UpdateRoles) GetGuildID ¶ added in v1.6.0
func (x *UpdateRoles) GetGuildID() string
func (*UpdateRoles) GetRoles ¶ added in v1.6.0
func (x *UpdateRoles) GetRoles() *Roles
func (*UpdateRoles) ProtoMessage ¶ added in v1.6.0
func (*UpdateRoles) ProtoMessage()
func (*UpdateRoles) ProtoReflect ¶ added in v1.9.0
func (x *UpdateRoles) ProtoReflect() protoreflect.Message
func (*UpdateRoles) Reset ¶ added in v1.6.0
func (x *UpdateRoles) Reset()
func (*UpdateRoles) String ¶ added in v1.6.0
func (x *UpdateRoles) String() string