api

package
v0.0.0-...-fe5af3a Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthApi        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterTimerServer

func RegisterTimerServer(s *grpc.Server, srv TimerServer)

Types

type GetAllTimerReq

type GetAllTimerReq struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetAllTimerReq) Descriptor

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

func (*GetAllTimerReq) Marshal

func (m *GetAllTimerReq) Marshal() (dAtA []byte, err error)

func (*GetAllTimerReq) MarshalTo

func (m *GetAllTimerReq) MarshalTo(dAtA []byte) (int, error)

func (*GetAllTimerReq) MarshalToSizedBuffer

func (m *GetAllTimerReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetAllTimerReq) ProtoMessage

func (*GetAllTimerReq) ProtoMessage()

func (*GetAllTimerReq) Reset

func (m *GetAllTimerReq) Reset()

func (*GetAllTimerReq) Size

func (m *GetAllTimerReq) Size() (n int)

func (*GetAllTimerReq) String

func (m *GetAllTimerReq) String() string

func (*GetAllTimerReq) Unmarshal

func (m *GetAllTimerReq) Unmarshal(dAtA []byte) error

func (*GetAllTimerReq) XXX_DiscardUnknown

func (m *GetAllTimerReq) XXX_DiscardUnknown()

func (*GetAllTimerReq) XXX_Marshal

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

func (*GetAllTimerReq) XXX_Merge

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

func (*GetAllTimerReq) XXX_Size

func (m *GetAllTimerReq) XXX_Size() int

func (*GetAllTimerReq) XXX_Unmarshal

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

type GetAllTimerRsp

type GetAllTimerRsp struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetAllTimerRsp) Descriptor

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

func (*GetAllTimerRsp) Marshal

func (m *GetAllTimerRsp) Marshal() (dAtA []byte, err error)

func (*GetAllTimerRsp) MarshalTo

func (m *GetAllTimerRsp) MarshalTo(dAtA []byte) (int, error)

func (*GetAllTimerRsp) MarshalToSizedBuffer

func (m *GetAllTimerRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetAllTimerRsp) ProtoMessage

func (*GetAllTimerRsp) ProtoMessage()

func (*GetAllTimerRsp) Reset

func (m *GetAllTimerRsp) Reset()

func (*GetAllTimerRsp) Size

func (m *GetAllTimerRsp) Size() (n int)

func (*GetAllTimerRsp) String

func (m *GetAllTimerRsp) String() string

func (*GetAllTimerRsp) Unmarshal

func (m *GetAllTimerRsp) Unmarshal(dAtA []byte) error

func (*GetAllTimerRsp) XXX_DiscardUnknown

func (m *GetAllTimerRsp) XXX_DiscardUnknown()

func (*GetAllTimerRsp) XXX_Marshal

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

func (*GetAllTimerRsp) XXX_Merge

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

func (*GetAllTimerRsp) XXX_Size

func (m *GetAllTimerRsp) XXX_Size() int

func (*GetAllTimerRsp) XXX_Unmarshal

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

type TimerClient

type TimerClient interface {
	// 获取所有定时器
	GetAllTimer(ctx context.Context, in *GetAllTimerReq, opts ...grpc.CallOption) (*GetAllTimerRsp, error)
}

TimerClient is the client API for Timer service.

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

func NewTimerClient

func NewTimerClient(cc *grpc.ClientConn) TimerClient

type TimerServer

type TimerServer interface {
	// 获取所有定时器
	GetAllTimer(context.Context, *GetAllTimerReq) (*GetAllTimerRsp, error)
}

TimerServer is the server API for Timer service.

type UnimplementedTimerServer

type UnimplementedTimerServer struct {
}

UnimplementedTimerServer can be embedded to have forward compatible implementations.

func (*UnimplementedTimerServer) GetAllTimer

Jump to

Keyboard shortcuts

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