countdownpb

package
v0.0.0-...-943c6e9 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCountDownServer

func RegisterCountDownServer(s *grpc.Server, srv CountDownServer)

Types

type CountDownClient

type CountDownClient interface {
	// streaming rpc
	Start(ctx context.Context, in *CountdownRequest, opts ...grpc.CallOption) (CountDown_StartClient, error)
}

CountDownClient is the client API for CountDown service.

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

func NewCountDownClient

func NewCountDownClient(cc grpc.ClientConnInterface) CountDownClient

type CountDownResponse

type CountDownResponse struct {
	Count                int32    `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CountDownResponse) Descriptor

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

func (*CountDownResponse) GetCount

func (m *CountDownResponse) GetCount() int32

func (*CountDownResponse) ProtoMessage

func (*CountDownResponse) ProtoMessage()

func (*CountDownResponse) Reset

func (m *CountDownResponse) Reset()

func (*CountDownResponse) String

func (m *CountDownResponse) String() string

func (*CountDownResponse) XXX_DiscardUnknown

func (m *CountDownResponse) XXX_DiscardUnknown()

func (*CountDownResponse) XXX_Marshal

func (m *CountDownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CountDownResponse) XXX_Merge

func (m *CountDownResponse) XXX_Merge(src proto.Message)

func (*CountDownResponse) XXX_Size

func (m *CountDownResponse) XXX_Size() int

func (*CountDownResponse) XXX_Unmarshal

func (m *CountDownResponse) XXX_Unmarshal(b []byte) error

type CountDownServer

type CountDownServer interface {
	// streaming rpc
	Start(*CountdownRequest, CountDown_StartServer) error
}

CountDownServer is the server API for CountDown service.

type CountDown_StartClient

type CountDown_StartClient interface {
	Recv() (*CountDownResponse, error)
	grpc.ClientStream
}

type CountDown_StartServer

type CountDown_StartServer interface {
	Send(*CountDownResponse) error
	grpc.ServerStream
}

type CountdownRequest

type CountdownRequest struct {
	Timer                int32    `protobuf:"varint,1,opt,name=Timer,proto3" json:"Timer,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CountdownRequest) Descriptor

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

func (*CountdownRequest) GetTimer

func (m *CountdownRequest) GetTimer() int32

func (*CountdownRequest) ProtoMessage

func (*CountdownRequest) ProtoMessage()

func (*CountdownRequest) Reset

func (m *CountdownRequest) Reset()

func (*CountdownRequest) String

func (m *CountdownRequest) String() string

func (*CountdownRequest) XXX_DiscardUnknown

func (m *CountdownRequest) XXX_DiscardUnknown()

func (*CountdownRequest) XXX_Marshal

func (m *CountdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CountdownRequest) XXX_Merge

func (m *CountdownRequest) XXX_Merge(src proto.Message)

func (*CountdownRequest) XXX_Size

func (m *CountdownRequest) XXX_Size() int

func (*CountdownRequest) XXX_Unmarshal

func (m *CountdownRequest) XXX_Unmarshal(b []byte) error

type UnimplementedCountDownServer

type UnimplementedCountDownServer struct {
}

UnimplementedCountDownServer can be embedded to have forward compatible implementations.

func (*UnimplementedCountDownServer) Start

Jump to

Keyboard shortcuts

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