sleep

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowService   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterSleepServiceServer

func RegisterSleepServiceServer(s *grpc.Server, srv SleepServiceServer)

Types

type SleepRequest

type SleepRequest struct {
	Milliseconds int64 `protobuf:"varint,1,opt,name=Milliseconds,proto3" json:"Milliseconds,omitempty"`
}

func (*SleepRequest) Descriptor

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

func (*SleepRequest) Equal

func (this *SleepRequest) Equal(that interface{}) bool

func (*SleepRequest) GetMilliseconds

func (m *SleepRequest) GetMilliseconds() int64

func (*SleepRequest) GoString

func (this *SleepRequest) GoString() string

func (*SleepRequest) Marshal

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

func (*SleepRequest) MarshalTo

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

func (*SleepRequest) MarshalToSizedBuffer

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

func (*SleepRequest) ProtoMessage

func (*SleepRequest) ProtoMessage()

func (*SleepRequest) Reset

func (m *SleepRequest) Reset()

func (*SleepRequest) Size

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

func (*SleepRequest) String

func (this *SleepRequest) String() string

func (*SleepRequest) Unmarshal

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

func (*SleepRequest) XXX_DiscardUnknown

func (m *SleepRequest) XXX_DiscardUnknown()

func (*SleepRequest) XXX_Marshal

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

func (*SleepRequest) XXX_Merge

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

func (*SleepRequest) XXX_Size

func (m *SleepRequest) XXX_Size() int

func (*SleepRequest) XXX_Unmarshal

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

type SleepResponse

type SleepResponse struct {
}

func (*SleepResponse) Descriptor

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

func (*SleepResponse) Equal

func (this *SleepResponse) Equal(that interface{}) bool

func (*SleepResponse) GoString

func (this *SleepResponse) GoString() string

func (*SleepResponse) Marshal

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

func (*SleepResponse) MarshalTo

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

func (*SleepResponse) MarshalToSizedBuffer

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

func (*SleepResponse) ProtoMessage

func (*SleepResponse) ProtoMessage()

func (*SleepResponse) Reset

func (m *SleepResponse) Reset()

func (*SleepResponse) Size

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

func (*SleepResponse) String

func (this *SleepResponse) String() string

func (*SleepResponse) Unmarshal

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

func (*SleepResponse) XXX_DiscardUnknown

func (m *SleepResponse) XXX_DiscardUnknown()

func (*SleepResponse) XXX_Marshal

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

func (*SleepResponse) XXX_Merge

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

func (*SleepResponse) XXX_Size

func (m *SleepResponse) XXX_Size() int

func (*SleepResponse) XXX_Unmarshal

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

type SleepService

type SleepService struct{}

func (*SleepService) SleepFor

func (s *SleepService) SleepFor(ctx context.Context, req *SleepRequest) (*SleepResponse, error)

type SleepServiceClient

type SleepServiceClient interface {
	SleepFor(ctx context.Context, in *SleepRequest, opts ...grpc.CallOption) (*SleepResponse, error)
}

SleepServiceClient is the client API for SleepService service.

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

func NewSleepServiceClient

func NewSleepServiceClient(cc *grpc.ClientConn) SleepServiceClient

type SleepServiceServer

type SleepServiceServer interface {
	SleepFor(context.Context, *SleepRequest) (*SleepResponse, error)
}

SleepServiceServer is the server API for SleepService service.

type UnimplementedSleepServiceServer

type UnimplementedSleepServiceServer struct {
}

UnimplementedSleepServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSleepServiceServer) SleepFor

Jump to

Keyboard shortcuts

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