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 ¶
- func AddSrvSetterHandlers(mux graceful.Handlerer, srv SrvSetterInterface, c graceful.Codec) graceful.Handlerer
- func AddSrvWaiterHandlers(mux graceful.Handlerer, srv SrvWaiterInterface, c graceful.Codec) graceful.Handlerer
- func NewSrvSetterHandler(srv SrvSetterInterface, c graceful.Codec) graceful.Handlerer
- func NewSrvWaiterHandler(srv SrvWaiterInterface, c graceful.Codec) graceful.Handlerer
- type Empty
- type Info
- type ReqSet
- type ReqWait
- type RespSet
- type SrvSetterHTTPClient
- type SrvSetterInterface
- type SrvWaiterHTTPClient
- type SrvWaiterInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSrvSetterHandlers ¶
func AddSrvWaiterHandlers ¶
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
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) GetTotalTimeNs ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
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) ProtoMessage ¶
func (*ReqSet) ProtoMessage()
type ReqWait ¶
type ReqWait struct {
Duration int64 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"`
}
func (*ReqWait) Descriptor ¶
func (*ReqWait) GetDuration ¶
func (*ReqWait) ProtoMessage ¶
func (*ReqWait) ProtoMessage()
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) ProtoMessage ¶
func (*RespSet) ProtoMessage()
type SrvSetterHTTPClient ¶
func NewSrvSetterHTTPClient ¶
func NewSrvSetterHTTPClient(cl *graceful.Client) SrvSetterHTTPClient
type SrvSetterInterface ¶
type SrvWaiterHTTPClient ¶
func NewSrvWaiterHTTPClient ¶
func NewSrvWaiterHTTPClient(cl *graceful.Client) SrvWaiterHTTPClient
Click to show internal directories.
Click to hide internal directories.