bot

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChannelsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "bot.ChannelsService",
	HandlerType: (*ChannelsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "getChannels",
			Handler:    _ChannelsService_GetChannels_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "bot.proto",
}

ChannelsService_ServiceDesc is the grpc.ServiceDesc for ChannelsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterChannelsServiceServer

func RegisterChannelsServiceServer(s grpc.ServiceRegistrar, srv ChannelsServiceServer)

Types

type Channel

type Channel struct {
	Id   int32  `protobuf:"varint,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() int32

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 ChannelsServiceClient

type ChannelsServiceClient interface {
	GetChannels(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*RespondChannels, error)
}

ChannelsServiceClient is the client API for ChannelsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ChannelsServiceServer

type ChannelsServiceServer interface {
	GetChannels(context.Context, *Empty) (*RespondChannels, error)
	// contains filtered or unexported methods
}

ChannelsServiceServer is the server API for ChannelsService service. All implementations must embed UnimplementedChannelsServiceServer for forward compatibility

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type RespondChannels

type RespondChannels struct {
	Channels []*Channel `protobuf:"bytes,1,rep,name=Channels,proto3" json:"Channels,omitempty"`
	// contains filtered or unexported fields
}

func (*RespondChannels) Descriptor deprecated

func (*RespondChannels) Descriptor() ([]byte, []int)

Deprecated: Use RespondChannels.ProtoReflect.Descriptor instead.

func (*RespondChannels) GetChannels

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

func (*RespondChannels) ProtoMessage

func (*RespondChannels) ProtoMessage()

func (*RespondChannels) ProtoReflect

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

func (*RespondChannels) Reset

func (x *RespondChannels) Reset()

func (*RespondChannels) String

func (x *RespondChannels) String() string

type UnimplementedChannelsServiceServer

type UnimplementedChannelsServiceServer struct {
}

UnimplementedChannelsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedChannelsServiceServer) GetChannels

type UnsafeChannelsServiceServer

type UnsafeChannelsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeChannelsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChannelsServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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