golang

package module
v0.0.0-...-9eae390 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

Deprecated: Use Channel.ProtoReflect.Descriptor instead.

func (*Channel) GetId

func (x *Channel) GetId() string

func (*Channel) GetName

func (x *Channel) GetName() string

func (*Channel) ProtoMessage

func (*Channel) ProtoMessage()

func (*Channel) ProtoReflect

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

func (*Channel) Reset

func (x *Channel) Reset()

func (*Channel) String

func (x *Channel) String() string

type Guild

type Guild struct {
	Id          string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Unavailable bool       `protobuf:"varint,2,opt,name=unavailable,proto3" json:"unavailable,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) Descriptor() ([]byte, []int)

Deprecated: Use Guild.ProtoReflect.Descriptor instead.

func (*Guild) GetChannels

func (x *Guild) GetChannels() []*Channel

func (*Guild) GetId

func (x *Guild) GetId() string

func (*Guild) GetName

func (x *Guild) GetName() string

func (*Guild) GetRoles

func (x *Guild) GetRoles() []*Role

func (*Guild) GetUnavailable

func (x *Guild) GetUnavailable() bool

func (*Guild) ProtoMessage

func (*Guild) ProtoMessage()

func (*Guild) ProtoReflect

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

func (*Guild) Reset

func (x *Guild) Reset()

func (*Guild) String

func (x *Guild) String() string

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetId

func (x *Role) GetId() string

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

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

Deprecated: Use Snowflake.ProtoReflect.Descriptor instead.

func (*Snowflake) GetId

func (x *Snowflake) GetId() string

func (*Snowflake) ProtoMessage

func (*Snowflake) ProtoMessage()

func (*Snowflake) ProtoReflect

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

func (*Snowflake) Reset

func (x *Snowflake) Reset()

func (*Snowflake) String

func (x *Snowflake) String() string

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) GetGuild

func (*UnimplementedStateServer) GetGuildChannels

func (*UnimplementedStateServer) GetGuildRoles

func (*UnimplementedStateServer) GetGuilds

func (*UnimplementedStateServer) GetRole

func (*UnimplementedStateServer) GetRoles

Jump to

Keyboard shortcuts

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