Documentation
¶
Index ¶
- Constants
- type Base
- type HTTPServiceGoTSRPCClient
- func (tsc *HTTPServiceGoTSRPCClient) GetByKey(ctx go_context.Context, key string) (retGetByKey_0 int, clientErr error)
- func (tsc *HTTPServiceGoTSRPCClient) GetName(ctx go_context.Context) (retGetName_0 string, clientErr error)
- func (tsc *HTTPServiceGoTSRPCClient) GetValue(ctx go_context.Context) (retGetValue_0 github_com_foomo_gotsrpc_v2_tests_common.Item, clientErr error)
- func (tsc *HTTPServiceGoTSRPCClient) GetWrapped(ctx go_context.Context) (...)
- type Handler
- type Keyed
- type Middle
- type Service
- type ServiceGetByKeyRequest
- type ServiceGetByKeyResponse
- type ServiceGetNameRequest
- type ServiceGetNameResponse
- type ServiceGetValueRequest
- type ServiceGetValueResponse
- type ServiceGetWrappedRequest
- type ServiceGetWrappedResponse
- type ServiceGoRPCClient
- func (tsc *ServiceGoRPCClient) GetByKey(key string) (retGetByKey_0 int, clientErr error)
- func (tsc *ServiceGoRPCClient) GetName() (retGetName_0 string, clientErr error)
- func (tsc *ServiceGoRPCClient) GetValue() (retGetValue_0 github_com_foomo_gotsrpc_v2_tests_common.Item, clientErr error)
- func (tsc *ServiceGoRPCClient) GetWrapped() (...)
- func (tsc *ServiceGoRPCClient) Start()
- func (tsc *ServiceGoRPCClient) Stop()
- type ServiceGoRPCProxy
- type ServiceGoTSRPCClient
- type ServiceGoTSRPCProxy
Constants ¶
View Source
const ( ServiceGoTSRPCProxyGetByKey = "GetByKey" ServiceGoTSRPCProxyGetName = "GetName" ServiceGoTSRPCProxyGetValue = "GetValue" ServiceGoTSRPCProxyGetWrapped = "GetWrapped" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServiceGoTSRPCClient ¶
func NewDefaultServiceGoTSRPCClient ¶
func NewDefaultServiceGoTSRPCClient(url string) *HTTPServiceGoTSRPCClient
func NewServiceGoTSRPCClient ¶
func NewServiceGoTSRPCClient(url string, endpoint string) *HTTPServiceGoTSRPCClient
func NewServiceGoTSRPCClientWithClient ¶
func NewServiceGoTSRPCClientWithClient(url string, endpoint string, client *go_net_http.Client) *HTTPServiceGoTSRPCClient
func (*HTTPServiceGoTSRPCClient) GetByKey ¶
func (tsc *HTTPServiceGoTSRPCClient) GetByKey(ctx go_context.Context, key string) (retGetByKey_0 int, clientErr error)
func (*HTTPServiceGoTSRPCClient) GetName ¶
func (tsc *HTTPServiceGoTSRPCClient) GetName(ctx go_context.Context) (retGetName_0 string, clientErr error)
func (*HTTPServiceGoTSRPCClient) GetValue ¶
func (tsc *HTTPServiceGoTSRPCClient) GetValue(ctx go_context.Context) (retGetValue_0 github_com_foomo_gotsrpc_v2_tests_common.Item, clientErr error)
func (*HTTPServiceGoTSRPCClient) GetWrapped ¶
func (tsc *HTTPServiceGoTSRPCClient) GetWrapped(ctx go_context.Context) (retGetWrapped_0 github_com_foomo_gotsrpc_v2_tests_common.Response[github_com_foomo_gotsrpc_v2_tests_common.Item], clientErr error)
type ServiceGetByKeyRequest ¶
type ServiceGetByKeyRequest struct {
Key string
}
type ServiceGetByKeyResponse ¶
type ServiceGetByKeyResponse struct {
RetGetByKey_0 int
}
type ServiceGetNameRequest ¶
type ServiceGetNameRequest struct {
}
type ServiceGetNameResponse ¶
type ServiceGetNameResponse struct {
RetGetName_0 string
}
type ServiceGetValueRequest ¶
type ServiceGetValueRequest struct {
}
type ServiceGetValueResponse ¶
type ServiceGetValueResponse struct {
RetGetValue_0 github_com_foomo_gotsrpc_v2_tests_common.Item
}
type ServiceGetWrappedRequest ¶
type ServiceGetWrappedRequest struct {
}
type ServiceGetWrappedResponse ¶
type ServiceGetWrappedResponse struct {
RetGetWrapped_0 github_com_foomo_gotsrpc_v2_tests_common.Response[github_com_foomo_gotsrpc_v2_tests_common.Item]
}
type ServiceGoRPCClient ¶
func NewServiceGoRPCClient ¶
func NewServiceGoRPCClient(addr string, tlsConfig *tls.Config) *ServiceGoRPCClient
func (*ServiceGoRPCClient) GetByKey ¶
func (tsc *ServiceGoRPCClient) GetByKey(key string) (retGetByKey_0 int, clientErr error)
func (*ServiceGoRPCClient) GetName ¶
func (tsc *ServiceGoRPCClient) GetName() (retGetName_0 string, clientErr error)
func (*ServiceGoRPCClient) GetValue ¶
func (tsc *ServiceGoRPCClient) GetValue() (retGetValue_0 github_com_foomo_gotsrpc_v2_tests_common.Item, clientErr error)
func (*ServiceGoRPCClient) GetWrapped ¶
func (tsc *ServiceGoRPCClient) GetWrapped() (retGetWrapped_0 github_com_foomo_gotsrpc_v2_tests_common.Response[github_com_foomo_gotsrpc_v2_tests_common.Item], clientErr error)
func (*ServiceGoRPCClient) Start ¶
func (tsc *ServiceGoRPCClient) Start()
func (*ServiceGoRPCClient) Stop ¶
func (tsc *ServiceGoRPCClient) Stop()
type ServiceGoRPCProxy ¶
type ServiceGoRPCProxy struct {
// contains filtered or unexported fields
}
func NewServiceGoRPCProxy ¶
func NewServiceGoRPCProxy(addr string, service Service, tlsConfig *tls.Config) *ServiceGoRPCProxy
func (*ServiceGoRPCProxy) Serve ¶
func (p *ServiceGoRPCProxy) Serve() error
func (*ServiceGoRPCProxy) SetCallStatsHandler ¶
func (p *ServiceGoRPCProxy) SetCallStatsHandler(handler gotsrpc.GoRPCCallStatsHandlerFun)
func (*ServiceGoRPCProxy) Start ¶
func (p *ServiceGoRPCProxy) Start() error
func (*ServiceGoRPCProxy) Stop ¶
func (p *ServiceGoRPCProxy) Stop()
type ServiceGoTSRPCClient ¶
type ServiceGoTSRPCClient interface {
GetByKey(ctx go_context.Context, key string) (retGetByKey_0 int, clientErr error)
GetName(ctx go_context.Context) (retGetName_0 string, clientErr error)
GetValue(ctx go_context.Context) (retGetValue_0 github_com_foomo_gotsrpc_v2_tests_common.Item, clientErr error)
GetWrapped(ctx go_context.Context) (retGetWrapped_0 github_com_foomo_gotsrpc_v2_tests_common.Response[github_com_foomo_gotsrpc_v2_tests_common.Item], clientErr error)
}
type ServiceGoTSRPCProxy ¶
type ServiceGoTSRPCProxy struct {
EndPoint string
// contains filtered or unexported fields
}
func NewDefaultServiceGoTSRPCProxy ¶
func NewDefaultServiceGoTSRPCProxy(service Service) *ServiceGoTSRPCProxy
func NewServiceGoTSRPCProxy ¶
func NewServiceGoTSRPCProxy(service Service, endpoint string) *ServiceGoTSRPCProxy
func (*ServiceGoTSRPCProxy) ServeHTTP ¶
func (p *ServiceGoTSRPCProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP exposes your service
Click to show internal directories.
Click to hide internal directories.