platform

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Category.ProtoReflect.Descriptor instead.

func (*Category) GetHidden added in v1.1.0

func (x *Category) GetHidden() bool

func (*Category) GetID added in v1.1.0

func (x *Category) GetID() string

func (*Category) GetName added in v1.1.0

func (x *Category) GetName() string

func (*Category) GetPosition added in v1.1.0

func (x *Category) GetPosition() int32

func (*Category) GetRoles added in v1.1.0

func (x *Category) GetRoles() []string

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

func (*Category) Reset

func (x *Category) Reset()

func (*Category) String

func (x *Category) String() string

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) Enum added in v1.9.0

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 (Category_CategoryType) String added in v1.1.0

func (x Category_CategoryType) String() string

func (Category_CategoryType) Type added in v1.9.0

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) Descriptor() ([]byte, []int)

Deprecated: Use GuildData.ProtoReflect.Descriptor instead.

func (*GuildData) GetCategories

func (x *GuildData) GetCategories() []*Category

func (*GuildData) GetEntitlements added in v1.1.0

func (x *GuildData) GetEntitlements() []string

func (*GuildData) GetID

func (x *GuildData) GetID() string

func (*GuildData) GetMessage

func (x *GuildData) GetMessage() string

func (*GuildData) ProtoMessage

func (*GuildData) ProtoMessage()

func (*GuildData) ProtoReflect added in v1.9.0

func (x *GuildData) ProtoReflect() protoreflect.Message

func (*GuildData) Reset

func (x *GuildData) Reset()

func (*GuildData) String

func (x *GuildData) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Roles.ProtoReflect.Descriptor instead.

func (*Roles) GetRoles added in v1.1.0

func (x *Roles) GetRoles() []string

func (*Roles) ProtoMessage

func (*Roles) ProtoMessage()

func (*Roles) ProtoReflect added in v1.9.0

func (x *Roles) ProtoReflect() protoreflect.Message

func (*Roles) Reset

func (x *Roles) Reset()

func (*Roles) String

func (x *Roles) String() string

type UnimplementedPlatformServer

type UnimplementedPlatformServer struct {
}

UnimplementedPlatformServer can be embedded to have forward compatible implementations.

func (*UnimplementedPlatformServer) EnumerateMyGuilds added in v1.6.0

func (*UnimplementedPlatformServer) GetGuild

func (*UnimplementedPlatformServer) GetGuildSlug added in v1.6.0

func (*UnimplementedPlatformServer) UpdateGuildData

func (*UnimplementedPlatformServer) UpdateMyRoles added in v1.6.0

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

Jump to

Keyboard shortcuts

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