Documentation
¶
Index ¶
- Constants
- type Base
- type ExtendedService
- type ExtendedServiceGetAgeRequest
- type ExtendedServiceGetAgeResponse
- type ExtendedServiceGetFirstNameRequest
- type ExtendedServiceGetFirstNameResponse
- type ExtendedServiceGetLastNameRequest
- type ExtendedServiceGetLastNameResponse
- type ExtendedServiceGetMiddleNameRequest
- type ExtendedServiceGetMiddleNameResponse
- type ExtendedServiceGetPersonRequest
- type ExtendedServiceGetPersonResponse
- type ExtendedServiceGoRPCClient
- func (tsc *ExtendedServiceGoRPCClient) GetAge() (retGetAge_0 int, clientErr error)
- func (tsc *ExtendedServiceGoRPCClient) GetFirstName() (retGetFirstName_0 string, clientErr error)
- func (tsc *ExtendedServiceGoRPCClient) GetLastName() (retGetLastName_0 string, clientErr error)
- func (tsc *ExtendedServiceGoRPCClient) GetMiddleName() (retGetMiddleName_0 string, clientErr error)
- func (tsc *ExtendedServiceGoRPCClient) GetPerson() (retGetPerson_0 Person, clientErr error)
- func (tsc *ExtendedServiceGoRPCClient) Start()
- func (tsc *ExtendedServiceGoRPCClient) Stop()
- type ExtendedServiceGoRPCProxy
- type ExtendedServiceGoTSRPCClient
- type ExtendedServiceGoTSRPCProxy
- type Extra
- type HTTPExtendedServiceGoTSRPCClient
- func NewDefaultExtendedServiceGoTSRPCClient(url string) *HTTPExtendedServiceGoTSRPCClient
- func NewExtendedServiceGoTSRPCClient(url string, endpoint string) *HTTPExtendedServiceGoTSRPCClient
- func NewExtendedServiceGoTSRPCClientWithClient(url string, endpoint string, client *go_net_http.Client) *HTTPExtendedServiceGoTSRPCClient
- func (tsc *HTTPExtendedServiceGoTSRPCClient) GetAge(ctx go_context.Context) (retGetAge_0 int, clientErr error)
- func (tsc *HTTPExtendedServiceGoTSRPCClient) GetFirstName(ctx go_context.Context) (retGetFirstName_0 string, clientErr error)
- func (tsc *HTTPExtendedServiceGoTSRPCClient) GetLastName(ctx go_context.Context) (retGetLastName_0 string, clientErr error)
- func (tsc *HTTPExtendedServiceGoTSRPCClient) GetMiddleName(ctx go_context.Context) (retGetMiddleName_0 string, clientErr error)
- func (tsc *HTTPExtendedServiceGoTSRPCClient) GetPerson(ctx go_context.Context) (retGetPerson_0 Person, clientErr error)
- type Handler
- type Middle
- type Person
Constants ¶
View Source
const ( ExtendedServiceGoTSRPCProxyGetAge = "GetAge" ExtendedServiceGoTSRPCProxyGetFirstName = "GetFirstName" ExtendedServiceGoTSRPCProxyGetLastName = "GetLastName" ExtendedServiceGoTSRPCProxyGetMiddleName = "GetMiddleName" ExtendedServiceGoTSRPCProxyGetPerson = "GetPerson" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtendedService ¶
type ExtendedServiceGetAgeRequest ¶
type ExtendedServiceGetAgeRequest struct {
}
type ExtendedServiceGetAgeResponse ¶
type ExtendedServiceGetAgeResponse struct {
RetGetAge_0 int
}
type ExtendedServiceGetFirstNameRequest ¶
type ExtendedServiceGetFirstNameRequest struct {
}
type ExtendedServiceGetFirstNameResponse ¶
type ExtendedServiceGetFirstNameResponse struct {
RetGetFirstName_0 string
}
type ExtendedServiceGetLastNameRequest ¶
type ExtendedServiceGetLastNameRequest struct {
}
type ExtendedServiceGetLastNameResponse ¶
type ExtendedServiceGetLastNameResponse struct {
RetGetLastName_0 string
}
type ExtendedServiceGetMiddleNameRequest ¶
type ExtendedServiceGetMiddleNameRequest struct {
}
type ExtendedServiceGetMiddleNameResponse ¶
type ExtendedServiceGetMiddleNameResponse struct {
RetGetMiddleName_0 string
}
type ExtendedServiceGetPersonRequest ¶
type ExtendedServiceGetPersonRequest struct {
}
type ExtendedServiceGetPersonResponse ¶
type ExtendedServiceGetPersonResponse struct {
RetGetPerson_0 Person
}
type ExtendedServiceGoRPCClient ¶
func NewExtendedServiceGoRPCClient ¶
func NewExtendedServiceGoRPCClient(addr string, tlsConfig *tls.Config) *ExtendedServiceGoRPCClient
func (*ExtendedServiceGoRPCClient) GetAge ¶
func (tsc *ExtendedServiceGoRPCClient) GetAge() (retGetAge_0 int, clientErr error)
func (*ExtendedServiceGoRPCClient) GetFirstName ¶
func (tsc *ExtendedServiceGoRPCClient) GetFirstName() (retGetFirstName_0 string, clientErr error)
func (*ExtendedServiceGoRPCClient) GetLastName ¶
func (tsc *ExtendedServiceGoRPCClient) GetLastName() (retGetLastName_0 string, clientErr error)
func (*ExtendedServiceGoRPCClient) GetMiddleName ¶
func (tsc *ExtendedServiceGoRPCClient) GetMiddleName() (retGetMiddleName_0 string, clientErr error)
func (*ExtendedServiceGoRPCClient) GetPerson ¶
func (tsc *ExtendedServiceGoRPCClient) GetPerson() (retGetPerson_0 Person, clientErr error)
func (*ExtendedServiceGoRPCClient) Start ¶
func (tsc *ExtendedServiceGoRPCClient) Start()
func (*ExtendedServiceGoRPCClient) Stop ¶
func (tsc *ExtendedServiceGoRPCClient) Stop()
type ExtendedServiceGoRPCProxy ¶
type ExtendedServiceGoRPCProxy struct {
// contains filtered or unexported fields
}
func NewExtendedServiceGoRPCProxy ¶
func NewExtendedServiceGoRPCProxy(addr string, service ExtendedService, tlsConfig *tls.Config) *ExtendedServiceGoRPCProxy
func (*ExtendedServiceGoRPCProxy) Serve ¶
func (p *ExtendedServiceGoRPCProxy) Serve() error
func (*ExtendedServiceGoRPCProxy) SetCallStatsHandler ¶
func (p *ExtendedServiceGoRPCProxy) SetCallStatsHandler(handler gotsrpc.GoRPCCallStatsHandlerFun)
func (*ExtendedServiceGoRPCProxy) Start ¶
func (p *ExtendedServiceGoRPCProxy) Start() error
func (*ExtendedServiceGoRPCProxy) Stop ¶
func (p *ExtendedServiceGoRPCProxy) Stop()
type ExtendedServiceGoTSRPCClient ¶
type ExtendedServiceGoTSRPCClient interface {
GetAge(ctx go_context.Context) (retGetAge_0 int, clientErr error)
GetFirstName(ctx go_context.Context) (retGetFirstName_0 string, clientErr error)
GetLastName(ctx go_context.Context) (retGetLastName_0 string, clientErr error)
GetMiddleName(ctx go_context.Context) (retGetMiddleName_0 string, clientErr error)
GetPerson(ctx go_context.Context) (retGetPerson_0 Person, clientErr error)
}
type ExtendedServiceGoTSRPCProxy ¶
type ExtendedServiceGoTSRPCProxy struct {
EndPoint string
// contains filtered or unexported fields
}
func NewDefaultExtendedServiceGoTSRPCProxy ¶
func NewDefaultExtendedServiceGoTSRPCProxy(service ExtendedService) *ExtendedServiceGoTSRPCProxy
func NewExtendedServiceGoTSRPCProxy ¶
func NewExtendedServiceGoTSRPCProxy(service ExtendedService, endpoint string) *ExtendedServiceGoTSRPCProxy
func (*ExtendedServiceGoTSRPCProxy) ServeHTTP ¶
func (p *ExtendedServiceGoTSRPCProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP exposes your service
type HTTPExtendedServiceGoTSRPCClient ¶
func NewDefaultExtendedServiceGoTSRPCClient ¶
func NewDefaultExtendedServiceGoTSRPCClient(url string) *HTTPExtendedServiceGoTSRPCClient
func NewExtendedServiceGoTSRPCClient ¶
func NewExtendedServiceGoTSRPCClient(url string, endpoint string) *HTTPExtendedServiceGoTSRPCClient
func NewExtendedServiceGoTSRPCClientWithClient ¶
func NewExtendedServiceGoTSRPCClientWithClient(url string, endpoint string, client *go_net_http.Client) *HTTPExtendedServiceGoTSRPCClient
func (*HTTPExtendedServiceGoTSRPCClient) GetAge ¶
func (tsc *HTTPExtendedServiceGoTSRPCClient) GetAge(ctx go_context.Context) (retGetAge_0 int, clientErr error)
func (*HTTPExtendedServiceGoTSRPCClient) GetFirstName ¶
func (tsc *HTTPExtendedServiceGoTSRPCClient) GetFirstName(ctx go_context.Context) (retGetFirstName_0 string, clientErr error)
func (*HTTPExtendedServiceGoTSRPCClient) GetLastName ¶
func (tsc *HTTPExtendedServiceGoTSRPCClient) GetLastName(ctx go_context.Context) (retGetLastName_0 string, clientErr error)
func (*HTTPExtendedServiceGoTSRPCClient) GetMiddleName ¶
func (tsc *HTTPExtendedServiceGoTSRPCClient) GetMiddleName(ctx go_context.Context) (retGetMiddleName_0 string, clientErr error)
func (*HTTPExtendedServiceGoTSRPCClient) GetPerson ¶
func (tsc *HTTPExtendedServiceGoTSRPCClient) GetPerson(ctx go_context.Context) (retGetPerson_0 Person, clientErr error)
Click to show internal directories.
Click to hide internal directories.