testservice

package
v0.0.0-...-ce2220e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package testservice is a generated protocol buffer package.

It is generated from these files:

srv.proto

It has these top-level messages:

ReqSet
RespSet
ReqWait
Info
Empty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSrvSetterHandler

func NewSrvSetterHandler(srv SrvSetterInterface, c graceful.Codec) graceful.Handlerer

func NewSrvWaiterHandler

func NewSrvWaiterHandler(srv SrvWaiterInterface, c graceful.Codec) graceful.Handlerer

Types

type Empty

type Empty struct {
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type Info

type Info struct {
	Code        int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Error       string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	TotalTimeNs int64  `protobuf:"varint,3,opt,name=total_time_ns,json=totalTimeNs,proto3" json:"total_time_ns,omitempty"`
}

func (*Info) Descriptor

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

func (*Info) GetCode

func (m *Info) GetCode() int32

func (*Info) GetError

func (m *Info) GetError() string

func (*Info) GetTotalTimeNs

func (m *Info) GetTotalTimeNs() int64

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) String

func (m *Info) String() string

type ReqSet

type ReqSet struct {
	Str string `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"`
	Num uint64 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"`
}

func (*ReqSet) Descriptor

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

func (*ReqSet) GetNum

func (m *ReqSet) GetNum() uint64

func (*ReqSet) GetStr

func (m *ReqSet) GetStr() string

func (*ReqSet) ProtoMessage

func (*ReqSet) ProtoMessage()

func (*ReqSet) Reset

func (m *ReqSet) Reset()

func (*ReqSet) String

func (m *ReqSet) String() string

type ReqWait

type ReqWait struct {
	Duration int64 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"`
}

func (*ReqWait) Descriptor

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

func (*ReqWait) GetDuration

func (m *ReqWait) GetDuration() int64

func (*ReqWait) ProtoMessage

func (*ReqWait) ProtoMessage()

func (*ReqWait) Reset

func (m *ReqWait) Reset()

func (*ReqWait) String

func (m *ReqWait) String() string

type RespSet

type RespSet struct {
	Info  *Info  `protobuf:"bytes,1,opt,name=info" json:"info,omitempty"`
	Upper string `protobuf:"bytes,2,opt,name=upper,proto3" json:"upper,omitempty"`
	Mod7  uint64 `protobuf:"varint,3,opt,name=mod7,proto3" json:"mod7,omitempty"`
}

func (*RespSet) Descriptor

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

func (*RespSet) GetInfo

func (m *RespSet) GetInfo() *Info

func (*RespSet) GetMod7

func (m *RespSet) GetMod7() uint64

func (*RespSet) GetUpper

func (m *RespSet) GetUpper() string

func (*RespSet) ProtoMessage

func (*RespSet) ProtoMessage()

func (*RespSet) Reset

func (m *RespSet) Reset()

func (*RespSet) String

func (m *RespSet) String() string

type SrvSetterHTTPClient

type SrvSetterHTTPClient struct {
	*graceful.Client
}

func NewSrvSetterHTTPClient

func NewSrvSetterHTTPClient(cl *graceful.Client) SrvSetterHTTPClient

func (SrvSetterHTTPClient) Set

func (cl SrvSetterHTTPClient) Set(ctx context.Context, args *ReqSet) (*RespSet, error)

type SrvSetterInterface

type SrvSetterInterface interface {
	Set(context.Context, *ReqSet) (*RespSet, error)
}

type SrvWaiterHTTPClient

type SrvWaiterHTTPClient struct {
	*graceful.Client
}

func NewSrvWaiterHTTPClient

func NewSrvWaiterHTTPClient(cl *graceful.Client) SrvWaiterHTTPClient

func (SrvWaiterHTTPClient) Wait

func (cl SrvWaiterHTTPClient) Wait(ctx context.Context, args *ReqWait) (*Empty, error)

type SrvWaiterInterface

type SrvWaiterInterface interface {
	Wait(context.Context, *ReqWait) (*Empty, error)
}

Jump to

Keyboard shortcuts

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