Documentation ¶
Index ¶
- func HelloServiceGrpcHandler(ctx context.Context, svc HelloServiceGrpcInterface, ...) net_http.Handler
- func HelloServiceHandler(svc HelloServiceInterface) net_http.Handler
- func RegisterHelloService(srv *net_rpc.Server, x HelloServiceInterface) error
- type HelloServiceClient
- func (p *HelloServiceClient) AsyncEcho(in *Message, out *Message, done chan *net_rpc.Call) *net_rpc.Call
- func (p *HelloServiceClient) AsyncHello(in *String, out *String, done chan *net_rpc.Call) *net_rpc.Call
- func (p *HelloServiceClient) AsyncStatic(in *String, out *StaticFile, done chan *net_rpc.Call) *net_rpc.Call
- func (p *HelloServiceClient) Echo(in *Message) (*Message, error)
- func (p *HelloServiceClient) Hello(in *String) (*String, error)
- func (p *HelloServiceClient) Static(in *String) (*StaticFile, error)
- type HelloServiceGrpcInterface
- type HelloServiceHttpClient
- type HelloServiceInterface
- type HelloServiceValidator
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetArray() []int32
- func (m *Message) GetDict() map[string]string
- func (m *Message) GetSubfiled() *String
- func (m *Message) GetValue() string
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type StaticFile
- func (*StaticFile) Descriptor() ([]byte, []int)
- func (m *StaticFile) GetContentBody() []byte
- func (m *StaticFile) GetContentType() string
- func (*StaticFile) ProtoMessage()
- func (m *StaticFile) Reset()
- func (m *StaticFile) String() string
- func (m *StaticFile) XXX_DiscardUnknown()
- func (m *StaticFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StaticFile) XXX_Merge(src proto.Message)
- func (m *StaticFile) XXX_Size() int
- func (m *StaticFile) XXX_Unmarshal(b []byte) error
- type String
- func (*String) Descriptor() ([]byte, []int)
- func (m *String) GetValue() string
- func (*String) ProtoMessage()
- func (m *String) Reset()
- func (m *String) String() string
- func (m *String) XXX_DiscardUnknown()
- func (m *String) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *String) XXX_Merge(src proto.Message)
- func (m *String) XXX_Size() int
- func (m *String) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelloServiceGrpcHandler ¶ added in v1.2.0
func HelloServiceHandler ¶
func HelloServiceHandler(svc HelloServiceInterface) net_http.Handler
func RegisterHelloService ¶
func RegisterHelloService(srv *net_rpc.Server, x HelloServiceInterface) error
Types ¶
type HelloServiceClient ¶
func DialHelloService ¶
func DialHelloService(network, address string) (*HelloServiceClient, error)
func (*HelloServiceClient) AsyncHello ¶ added in v1.1.0
func (*HelloServiceClient) AsyncStatic ¶ added in v1.1.0
func (p *HelloServiceClient) AsyncStatic(in *String, out *StaticFile, done chan *net_rpc.Call) *net_rpc.Call
func (*HelloServiceClient) Static ¶
func (p *HelloServiceClient) Static(in *String) (*StaticFile, error)
type HelloServiceGrpcInterface ¶ added in v1.2.0
type HelloServiceHttpClient ¶ added in v1.4.0
type HelloServiceHttpClient struct {
// contains filtered or unexported fields
}
func NewHelloServiceHttpClient ¶ added in v1.4.0
func NewHelloServiceHttpClient(baseurl string, c ...*net_http.Client) *HelloServiceHttpClient
func (*HelloServiceHttpClient) Echo ¶ added in v1.4.0
func (p *HelloServiceHttpClient) Echo(in *Message, method ...string) (out *Message, err error)
func (*HelloServiceHttpClient) Hello ¶ added in v1.4.0
func (p *HelloServiceHttpClient) Hello(in *String, method ...string) (out *String, err error)
func (*HelloServiceHttpClient) Static ¶ added in v1.4.0
func (p *HelloServiceHttpClient) Static(in *String, method ...string) (out *StaticFile, err error)
type HelloServiceInterface ¶
type HelloServiceValidator ¶ added in v1.1.0
type HelloServiceValidator struct {
HelloServiceInterface
}
func (*HelloServiceValidator) Echo ¶ added in v1.1.0
func (p *HelloServiceValidator) Echo(in *Message, out *Message) error
func (*HelloServiceValidator) Hello ¶ added in v1.1.0
func (p *HelloServiceValidator) Hello(in *String, out *String) error
func (*HelloServiceValidator) Static ¶ added in v1.1.0
func (p *HelloServiceValidator) Static(in *String, out *StaticFile) error
type Message ¶
type Message struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Array []int32 `protobuf:"varint,2,rep,packed,name=array,proto3" json:"array,omitempty"` Dict map[string]string `` /* 149-byte string literal not displayed */ Subfiled *String `protobuf:"bytes,4,opt,name=subfiled,proto3" json:"subfiled,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) GetSubfiled ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type StaticFile ¶
type StaticFile struct { ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` ContentBody []byte `protobuf:"bytes,2,opt,name=content_body,json=contentBody,proto3" json:"content_body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StaticFile) Descriptor ¶
func (*StaticFile) Descriptor() ([]byte, []int)
func (*StaticFile) GetContentBody ¶
func (m *StaticFile) GetContentBody() []byte
func (*StaticFile) GetContentType ¶
func (m *StaticFile) GetContentType() string
func (*StaticFile) ProtoMessage ¶
func (*StaticFile) ProtoMessage()
func (*StaticFile) Reset ¶
func (m *StaticFile) Reset()
func (*StaticFile) String ¶
func (m *StaticFile) String() string
func (*StaticFile) XXX_DiscardUnknown ¶
func (m *StaticFile) XXX_DiscardUnknown()
func (*StaticFile) XXX_Marshal ¶
func (m *StaticFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StaticFile) XXX_Merge ¶
func (m *StaticFile) XXX_Merge(src proto.Message)
func (*StaticFile) XXX_Size ¶
func (m *StaticFile) XXX_Size() int
func (*StaticFile) XXX_Unmarshal ¶
func (m *StaticFile) XXX_Unmarshal(b []byte) error
type String ¶
type String struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*String) Descriptor ¶
func (*String) ProtoMessage ¶
func (*String) ProtoMessage()
func (*String) XXX_DiscardUnknown ¶
func (m *String) XXX_DiscardUnknown()
func (*String) XXX_Marshal ¶
func (*String) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.