alpha

package
v0.0.0-...-d2a2bec Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterChatServiceServer

func RegisterChatServiceServer(s *grpc.Server, srv ChatServiceServer)

Types

type ChatServiceClient

type ChatServiceClient interface {
	Send(ctx context.Context, in *wrappers.StringValue, opts ...grpc.CallOption) (*empty.Empty, error)
	Subscribe(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (ChatService_SubscribeClient, error)
}

ChatServiceClient is the client API for ChatService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewChatServiceClient

func NewChatServiceClient(cc *grpc.ClientConn) ChatServiceClient

type ChatServiceServer

type ChatServiceServer interface {
	Send(context.Context, *wrappers.StringValue) (*empty.Empty, error)
	Subscribe(*empty.Empty, ChatService_SubscribeServer) error
}

ChatServiceServer is the server API for ChatService service.

type ChatService_SubscribeClient

type ChatService_SubscribeClient interface {
	Recv() (*domain.Chat, error)
	grpc.ClientStream
}

type ChatService_SubscribeServer

type ChatService_SubscribeServer interface {
	Send(*domain.Chat) error
	grpc.ServerStream
}

type UnimplementedChatServiceServer

type UnimplementedChatServiceServer struct {
}

UnimplementedChatServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedChatServiceServer) Send

func (*UnimplementedChatServiceServer) Subscribe

Jump to

Keyboard shortcuts

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