timedelta

package
v0.0.0-...-eab68ab Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package timedelta is a generated protocol buffer package.

It is generated from these files:

timedelta.proto

It has these top-level messages:

TimeDeltaRequest
TimeDeltaResponse
SleepRequest
SleepResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GontextFromRest

func GontextFromRest(req ripo.Request) (context.Context, error)

func NewRest_Sleep

func NewRest_Sleep(client TimedeltaClient) ripo.Handler

func NewRest_TimeDelta

func NewRest_TimeDelta(client TimedeltaClient) ripo.Handler

func RegisterRestHandlers

func RegisterRestHandlers(client TimedeltaClient, router *httprouter.Router)

func RegisterTimedeltaServer

func RegisterTimedeltaServer(s *grpc.Server, srv TimedeltaServer)

Types

type SleepRequest

type SleepRequest struct {
	Duration *google_protobuf1.Duration `protobuf:"bytes,1,opt,name=duration" json:"duration,omitempty"`
}

func (*SleepRequest) Descriptor

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

func (*SleepRequest) GetDuration

func (m *SleepRequest) GetDuration() *google_protobuf1.Duration

func (*SleepRequest) ProtoMessage

func (*SleepRequest) ProtoMessage()

func (*SleepRequest) Reset

func (m *SleepRequest) Reset()

func (*SleepRequest) String

func (m *SleepRequest) String() string

type SleepResponse

type SleepResponse struct {
}

func (*SleepResponse) Descriptor

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

func (*SleepResponse) ProtoMessage

func (*SleepResponse) ProtoMessage()

func (*SleepResponse) Reset

func (m *SleepResponse) Reset()

func (*SleepResponse) String

func (m *SleepResponse) String() string

type TimeDeltaRequest

type TimeDeltaRequest struct {
	Now *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=now" json:"now,omitempty"`
}

func (*TimeDeltaRequest) Descriptor

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

func (*TimeDeltaRequest) GetNow

func (*TimeDeltaRequest) ProtoMessage

func (*TimeDeltaRequest) ProtoMessage()

func (*TimeDeltaRequest) Reset

func (m *TimeDeltaRequest) Reset()

func (*TimeDeltaRequest) String

func (m *TimeDeltaRequest) String() string

type TimeDeltaResponse

type TimeDeltaResponse struct {
	Now   *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=now" json:"now,omitempty"`
	Delta *google_protobuf1.Duration `protobuf:"bytes,2,opt,name=delta" json:"delta,omitempty"`
}

func (*TimeDeltaResponse) Descriptor

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

func (*TimeDeltaResponse) GetDelta

func (*TimeDeltaResponse) GetNow

func (*TimeDeltaResponse) ProtoMessage

func (*TimeDeltaResponse) ProtoMessage()

func (*TimeDeltaResponse) Reset

func (m *TimeDeltaResponse) Reset()

func (*TimeDeltaResponse) String

func (m *TimeDeltaResponse) String() string

type TimedeltaClient

type TimedeltaClient interface {
	TimeDelta(ctx context.Context, in *TimeDeltaRequest, opts ...grpc.CallOption) (*TimeDeltaResponse, error)
	Sleep(ctx context.Context, in *SleepRequest, opts ...grpc.CallOption) (*SleepResponse, error)
}

func NewTimedeltaClient

func NewTimedeltaClient(cc *grpc.ClientConn) TimedeltaClient

func NewTimedeltaClientFromServer

func NewTimedeltaClientFromServer(srv TimedeltaServer) TimedeltaClient

type TimedeltaServer

type TimedeltaServer interface {
	TimeDelta(context.Context, *TimeDeltaRequest) (*TimeDeltaResponse, error)
	Sleep(context.Context, *SleepRequest) (*SleepResponse, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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