Documentation ¶
Index ¶
- Variables
- func RegisterStateServer(s *grpc.Server, srv StateServer)
- type Channel
- type Guild
- func (*Guild) Descriptor() ([]byte, []int)deprecated
- func (x *Guild) GetChannels() []*Channel
- func (x *Guild) GetId() string
- func (x *Guild) GetName() string
- func (x *Guild) GetRoles() []*Role
- func (x *Guild) GetUnavailable() bool
- func (*Guild) ProtoMessage()
- func (x *Guild) ProtoReflect() protoreflect.Message
- func (x *Guild) Reset()
- func (x *Guild) String() string
- type Role
- type Snowflake
- type StateClient
- type StateServer
- type State_GetChannelsClient
- type State_GetChannelsServer
- type State_GetGuildChannelsClient
- type State_GetGuildChannelsServer
- type State_GetGuildRolesClient
- type State_GetGuildRolesServer
- type State_GetGuildsClient
- type State_GetGuildsServer
- type State_GetRolesClient
- type State_GetRolesServer
- type UnimplementedStateServer
- func (*UnimplementedStateServer) GetChannel(context.Context, *Snowflake) (*Channel, error)
- func (*UnimplementedStateServer) GetChannels(*Channel, State_GetChannelsServer) error
- func (*UnimplementedStateServer) GetGuild(context.Context, *Snowflake) (*Guild, error)
- func (*UnimplementedStateServer) GetGuildChannels(*Snowflake, State_GetGuildChannelsServer) error
- func (*UnimplementedStateServer) GetGuildRoles(*Snowflake, State_GetGuildRolesServer) error
- func (*UnimplementedStateServer) GetGuilds(*Guild, State_GetGuildsServer) error
- func (*UnimplementedStateServer) GetRole(context.Context, *Snowflake) (*Role, error)
- func (*UnimplementedStateServer) GetRoles(*Role, State_GetRolesServer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var File_state_proto protoreflect.FileDescriptor
Functions ¶
func RegisterStateServer ¶
func RegisterStateServer(s *grpc.Server, srv StateServer)
Types ¶
type Channel ¶
type Channel 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"` // contains filtered or unexported fields }
func (*Channel) Descriptor
deprecated
func (*Channel) ProtoMessage ¶
func (*Channel) ProtoMessage()
func (*Channel) ProtoReflect ¶
func (x *Channel) ProtoReflect() protoreflect.Message
type Guild ¶
type Guild struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Channels []*Channel `protobuf:"bytes,4,rep,name=channels,proto3" json:"channels,omitempty"` Roles []*Role `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*Guild) Descriptor
deprecated
func (*Guild) GetChannels ¶
func (*Guild) GetUnavailable ¶
func (*Guild) ProtoMessage ¶
func (*Guild) ProtoMessage()
func (*Guild) ProtoReflect ¶
func (x *Guild) ProtoReflect() protoreflect.Message
type Role ¶
type Role 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"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type Snowflake ¶
type Snowflake struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Snowflake) Descriptor
deprecated
func (*Snowflake) ProtoMessage ¶
func (*Snowflake) ProtoMessage()
func (*Snowflake) ProtoReflect ¶
func (x *Snowflake) ProtoReflect() protoreflect.Message
type StateClient ¶
type StateClient interface { // The Guild parameter can be used to supply filters GetGuilds(ctx context.Context, in *Guild, opts ...grpc.CallOption) (State_GetGuildsClient, error) GetGuild(ctx context.Context, in *Snowflake, opts ...grpc.CallOption) (*Guild, error) GetGuildChannels(ctx context.Context, in *Snowflake, opts ...grpc.CallOption) (State_GetGuildChannelsClient, error) GetGuildRoles(ctx context.Context, in *Snowflake, opts ...grpc.CallOption) (State_GetGuildRolesClient, error) // The Channel parameter can be used to supply filters GetChannels(ctx context.Context, in *Channel, opts ...grpc.CallOption) (State_GetChannelsClient, error) GetChannel(ctx context.Context, in *Snowflake, opts ...grpc.CallOption) (*Channel, error) // The Role parameter can be used to supply filters GetRoles(ctx context.Context, in *Role, opts ...grpc.CallOption) (State_GetRolesClient, error) GetRole(ctx context.Context, in *Snowflake, opts ...grpc.CallOption) (*Role, error) }
StateClient is the client API for State service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStateClient ¶
func NewStateClient(cc grpc.ClientConnInterface) StateClient
type StateServer ¶
type StateServer interface { // The Guild parameter can be used to supply filters GetGuilds(*Guild, State_GetGuildsServer) error GetGuild(context.Context, *Snowflake) (*Guild, error) GetGuildChannels(*Snowflake, State_GetGuildChannelsServer) error GetGuildRoles(*Snowflake, State_GetGuildRolesServer) error // The Channel parameter can be used to supply filters GetChannels(*Channel, State_GetChannelsServer) error GetChannel(context.Context, *Snowflake) (*Channel, error) // The Role parameter can be used to supply filters GetRoles(*Role, State_GetRolesServer) error GetRole(context.Context, *Snowflake) (*Role, error) }
StateServer is the server API for State service.
type State_GetChannelsClient ¶
type State_GetChannelsClient interface { Recv() (*Channel, error) grpc.ClientStream }
type State_GetChannelsServer ¶
type State_GetChannelsServer interface { Send(*Channel) error grpc.ServerStream }
type State_GetGuildChannelsClient ¶
type State_GetGuildChannelsClient interface { Recv() (*Channel, error) grpc.ClientStream }
type State_GetGuildChannelsServer ¶
type State_GetGuildChannelsServer interface { Send(*Channel) error grpc.ServerStream }
type State_GetGuildRolesClient ¶
type State_GetGuildRolesClient interface { Recv() (*Role, error) grpc.ClientStream }
type State_GetGuildRolesServer ¶
type State_GetGuildRolesServer interface { Send(*Role) error grpc.ServerStream }
type State_GetGuildsClient ¶
type State_GetGuildsClient interface { Recv() (*Guild, error) grpc.ClientStream }
type State_GetGuildsServer ¶
type State_GetGuildsServer interface { Send(*Guild) error grpc.ServerStream }
type State_GetRolesClient ¶
type State_GetRolesClient interface { Recv() (*Role, error) grpc.ClientStream }
type State_GetRolesServer ¶
type State_GetRolesServer interface { Send(*Role) error grpc.ServerStream }
type UnimplementedStateServer ¶
type UnimplementedStateServer struct { }
UnimplementedStateServer can be embedded to have forward compatible implementations.
func (*UnimplementedStateServer) GetChannel ¶
func (*UnimplementedStateServer) GetChannels ¶
func (*UnimplementedStateServer) GetChannels(*Channel, State_GetChannelsServer) error
func (*UnimplementedStateServer) GetGuildChannels ¶
func (*UnimplementedStateServer) GetGuildChannels(*Snowflake, State_GetGuildChannelsServer) error
func (*UnimplementedStateServer) GetGuildRoles ¶
func (*UnimplementedStateServer) GetGuildRoles(*Snowflake, State_GetGuildRolesServer) error
func (*UnimplementedStateServer) GetGuilds ¶
func (*UnimplementedStateServer) GetGuilds(*Guild, State_GetGuildsServer) error
func (*UnimplementedStateServer) GetRoles ¶
func (*UnimplementedStateServer) GetRoles(*Role, State_GetRolesServer) error
Click to show internal directories.
Click to hide internal directories.