Documentation ¶
Index ¶
- Variables
- func RegisterFrontendServer(s *grpc.Server, srv FrontendServer)
- type ClientToFrontend
- func (*ClientToFrontend) Descriptor() ([]byte, []int)
- func (this *ClientToFrontend) Equal(that interface{}) bool
- func (m *ClientToFrontend) GetClientID() string
- func (m *ClientToFrontend) GetHttpResponse() *httpgrpc.HTTPResponse
- func (m *ClientToFrontend) GetStats() *stats.Stats
- func (this *ClientToFrontend) GoString() string
- func (m *ClientToFrontend) Marshal() (dAtA []byte, err error)
- func (m *ClientToFrontend) MarshalTo(dAtA []byte) (int, error)
- func (m *ClientToFrontend) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClientToFrontend) ProtoMessage()
- func (m *ClientToFrontend) Reset()
- func (m *ClientToFrontend) Size() (n int)
- func (this *ClientToFrontend) String() string
- func (m *ClientToFrontend) Unmarshal(dAtA []byte) error
- func (m *ClientToFrontend) XXX_DiscardUnknown()
- func (m *ClientToFrontend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientToFrontend) XXX_Merge(src proto.Message)
- func (m *ClientToFrontend) XXX_Size() int
- func (m *ClientToFrontend) XXX_Unmarshal(b []byte) error
- type FrontendClient
- type FrontendServer
- type FrontendToClient
- func (*FrontendToClient) Descriptor() ([]byte, []int)
- func (this *FrontendToClient) Equal(that interface{}) bool
- func (m *FrontendToClient) GetHttpRequest() *httpgrpc.HTTPRequest
- func (m *FrontendToClient) GetStatsEnabled() bool
- func (m *FrontendToClient) GetType() Type
- func (this *FrontendToClient) GoString() string
- func (m *FrontendToClient) Marshal() (dAtA []byte, err error)
- func (m *FrontendToClient) MarshalTo(dAtA []byte) (int, error)
- func (m *FrontendToClient) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FrontendToClient) ProtoMessage()
- func (m *FrontendToClient) Reset()
- func (m *FrontendToClient) Size() (n int)
- func (this *FrontendToClient) String() string
- func (m *FrontendToClient) Unmarshal(dAtA []byte) error
- func (m *FrontendToClient) XXX_DiscardUnknown()
- func (m *FrontendToClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FrontendToClient) XXX_Merge(src proto.Message)
- func (m *FrontendToClient) XXX_Size() int
- func (m *FrontendToClient) XXX_Unmarshal(b []byte) error
- type Frontend_ProcessClient
- type Frontend_ProcessServer
- type NotifyClientShutdownRequest
- func (*NotifyClientShutdownRequest) Descriptor() ([]byte, []int)
- func (this *NotifyClientShutdownRequest) Equal(that interface{}) bool
- func (m *NotifyClientShutdownRequest) GetClientID() string
- func (this *NotifyClientShutdownRequest) GoString() string
- func (m *NotifyClientShutdownRequest) Marshal() (dAtA []byte, err error)
- func (m *NotifyClientShutdownRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *NotifyClientShutdownRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NotifyClientShutdownRequest) ProtoMessage()
- func (m *NotifyClientShutdownRequest) Reset()
- func (m *NotifyClientShutdownRequest) Size() (n int)
- func (this *NotifyClientShutdownRequest) String() string
- func (m *NotifyClientShutdownRequest) Unmarshal(dAtA []byte) error
- func (m *NotifyClientShutdownRequest) XXX_DiscardUnknown()
- func (m *NotifyClientShutdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NotifyClientShutdownRequest) XXX_Merge(src proto.Message)
- func (m *NotifyClientShutdownRequest) XXX_Size() int
- func (m *NotifyClientShutdownRequest) XXX_Unmarshal(b []byte) error
- type NotifyClientShutdownResponse
- func (*NotifyClientShutdownResponse) Descriptor() ([]byte, []int)
- func (this *NotifyClientShutdownResponse) Equal(that interface{}) bool
- func (this *NotifyClientShutdownResponse) GoString() string
- func (m *NotifyClientShutdownResponse) Marshal() (dAtA []byte, err error)
- func (m *NotifyClientShutdownResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *NotifyClientShutdownResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NotifyClientShutdownResponse) ProtoMessage()
- func (m *NotifyClientShutdownResponse) Reset()
- func (m *NotifyClientShutdownResponse) Size() (n int)
- func (this *NotifyClientShutdownResponse) String() string
- func (m *NotifyClientShutdownResponse) Unmarshal(dAtA []byte) error
- func (m *NotifyClientShutdownResponse) XXX_DiscardUnknown()
- func (m *NotifyClientShutdownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NotifyClientShutdownResponse) XXX_Merge(src proto.Message)
- func (m *NotifyClientShutdownResponse) XXX_Size() int
- func (m *NotifyClientShutdownResponse) XXX_Unmarshal(b []byte) error
- type Type
- type UnimplementedFrontendServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthFrontend = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFrontend = fmt.Errorf("proto: integer overflow") )
View Source
var Type_name = map[int32]string{
0: "HTTP_REQUEST",
1: "GET_ID",
}
View Source
var Type_value = map[string]int32{
"HTTP_REQUEST": 0,
"GET_ID": 1,
}
Functions ¶
func RegisterFrontendServer ¶
func RegisterFrontendServer(s *grpc.Server, srv FrontendServer)
Types ¶
type ClientToFrontend ¶
type ClientToFrontend struct { HttpResponse *httpgrpc.HTTPResponse `protobuf:"bytes,1,opt,name=httpResponse,proto3" json:"httpResponse,omitempty"` ClientID string `protobuf:"bytes,2,opt,name=clientID,proto3" json:"clientID,omitempty"` Stats *stats.Stats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats,omitempty"` }
func (*ClientToFrontend) Descriptor ¶
func (*ClientToFrontend) Descriptor() ([]byte, []int)
func (*ClientToFrontend) Equal ¶
func (this *ClientToFrontend) Equal(that interface{}) bool
func (*ClientToFrontend) GetClientID ¶
func (m *ClientToFrontend) GetClientID() string
func (*ClientToFrontend) GetHttpResponse ¶
func (m *ClientToFrontend) GetHttpResponse() *httpgrpc.HTTPResponse
func (*ClientToFrontend) GetStats ¶
func (m *ClientToFrontend) GetStats() *stats.Stats
func (*ClientToFrontend) GoString ¶
func (this *ClientToFrontend) GoString() string
func (*ClientToFrontend) Marshal ¶
func (m *ClientToFrontend) Marshal() (dAtA []byte, err error)
func (*ClientToFrontend) MarshalToSizedBuffer ¶
func (m *ClientToFrontend) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClientToFrontend) ProtoMessage ¶
func (*ClientToFrontend) ProtoMessage()
func (*ClientToFrontend) Reset ¶
func (m *ClientToFrontend) Reset()
func (*ClientToFrontend) Size ¶
func (m *ClientToFrontend) Size() (n int)
func (*ClientToFrontend) String ¶
func (this *ClientToFrontend) String() string
func (*ClientToFrontend) Unmarshal ¶
func (m *ClientToFrontend) Unmarshal(dAtA []byte) error
func (*ClientToFrontend) XXX_DiscardUnknown ¶
func (m *ClientToFrontend) XXX_DiscardUnknown()
func (*ClientToFrontend) XXX_Marshal ¶
func (m *ClientToFrontend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientToFrontend) XXX_Merge ¶
func (m *ClientToFrontend) XXX_Merge(src proto.Message)
func (*ClientToFrontend) XXX_Size ¶
func (m *ClientToFrontend) XXX_Size() int
func (*ClientToFrontend) XXX_Unmarshal ¶
func (m *ClientToFrontend) XXX_Unmarshal(b []byte) error
type FrontendClient ¶
type FrontendClient interface { // After calling this method, client enters a loop, in which it waits for // a "FrontendToClient" message and replies with single "ClientToFrontend" message. Process(ctx context.Context, opts ...grpc.CallOption) (Frontend_ProcessClient, error) // The client notifies the query-frontend that it started a graceful shutdown. NotifyClientShutdown(ctx context.Context, in *NotifyClientShutdownRequest, opts ...grpc.CallOption) (*NotifyClientShutdownResponse, error) }
FrontendClient is the client API for Frontend service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewFrontendClient ¶
func NewFrontendClient(cc *grpc.ClientConn) FrontendClient
type FrontendServer ¶
type FrontendServer interface { // After calling this method, client enters a loop, in which it waits for // a "FrontendToClient" message and replies with single "ClientToFrontend" message. Process(Frontend_ProcessServer) error // The client notifies the query-frontend that it started a graceful shutdown. NotifyClientShutdown(context.Context, *NotifyClientShutdownRequest) (*NotifyClientShutdownResponse, error) }
FrontendServer is the server API for Frontend service.
type FrontendToClient ¶
type FrontendToClient struct { HttpRequest *httpgrpc.HTTPRequest `protobuf:"bytes,1,opt,name=httpRequest,proto3" json:"httpRequest,omitempty"` Type Type `protobuf:"varint,2,opt,name=type,proto3,enum=frontend.Type" json:"type,omitempty"` // Whether query statistics tracking should be enabled. The response will include // statistics only when this option is enabled. StatsEnabled bool `protobuf:"varint,3,opt,name=statsEnabled,proto3" json:"statsEnabled,omitempty"` }
func (*FrontendToClient) Descriptor ¶
func (*FrontendToClient) Descriptor() ([]byte, []int)
func (*FrontendToClient) Equal ¶
func (this *FrontendToClient) Equal(that interface{}) bool
func (*FrontendToClient) GetHttpRequest ¶
func (m *FrontendToClient) GetHttpRequest() *httpgrpc.HTTPRequest
func (*FrontendToClient) GetStatsEnabled ¶ added in v1.7.0
func (m *FrontendToClient) GetStatsEnabled() bool
func (*FrontendToClient) GetType ¶
func (m *FrontendToClient) GetType() Type
func (*FrontendToClient) GoString ¶
func (this *FrontendToClient) GoString() string
func (*FrontendToClient) Marshal ¶
func (m *FrontendToClient) Marshal() (dAtA []byte, err error)
func (*FrontendToClient) MarshalToSizedBuffer ¶
func (m *FrontendToClient) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FrontendToClient) ProtoMessage ¶
func (*FrontendToClient) ProtoMessage()
func (*FrontendToClient) Reset ¶
func (m *FrontendToClient) Reset()
func (*FrontendToClient) Size ¶
func (m *FrontendToClient) Size() (n int)
func (*FrontendToClient) String ¶
func (this *FrontendToClient) String() string
func (*FrontendToClient) Unmarshal ¶
func (m *FrontendToClient) Unmarshal(dAtA []byte) error
func (*FrontendToClient) XXX_DiscardUnknown ¶
func (m *FrontendToClient) XXX_DiscardUnknown()
func (*FrontendToClient) XXX_Marshal ¶
func (m *FrontendToClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FrontendToClient) XXX_Merge ¶
func (m *FrontendToClient) XXX_Merge(src proto.Message)
func (*FrontendToClient) XXX_Size ¶
func (m *FrontendToClient) XXX_Size() int
func (*FrontendToClient) XXX_Unmarshal ¶
func (m *FrontendToClient) XXX_Unmarshal(b []byte) error
type Frontend_ProcessClient ¶
type Frontend_ProcessClient interface { Send(*ClientToFrontend) error Recv() (*FrontendToClient, error) grpc.ClientStream }
type Frontend_ProcessServer ¶
type Frontend_ProcessServer interface { Send(*FrontendToClient) error Recv() (*ClientToFrontend, error) grpc.ServerStream }
type NotifyClientShutdownRequest ¶ added in v1.9.0
type NotifyClientShutdownRequest struct {
ClientID string `protobuf:"bytes,1,opt,name=clientID,proto3" json:"clientID,omitempty"`
}
func (*NotifyClientShutdownRequest) Descriptor ¶ added in v1.9.0
func (*NotifyClientShutdownRequest) Descriptor() ([]byte, []int)
func (*NotifyClientShutdownRequest) Equal ¶ added in v1.9.0
func (this *NotifyClientShutdownRequest) Equal(that interface{}) bool
func (*NotifyClientShutdownRequest) GetClientID ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) GetClientID() string
func (*NotifyClientShutdownRequest) GoString ¶ added in v1.9.0
func (this *NotifyClientShutdownRequest) GoString() string
func (*NotifyClientShutdownRequest) Marshal ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) Marshal() (dAtA []byte, err error)
func (*NotifyClientShutdownRequest) MarshalTo ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) MarshalTo(dAtA []byte) (int, error)
func (*NotifyClientShutdownRequest) MarshalToSizedBuffer ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NotifyClientShutdownRequest) ProtoMessage ¶ added in v1.9.0
func (*NotifyClientShutdownRequest) ProtoMessage()
func (*NotifyClientShutdownRequest) Reset ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) Reset()
func (*NotifyClientShutdownRequest) Size ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) Size() (n int)
func (*NotifyClientShutdownRequest) String ¶ added in v1.9.0
func (this *NotifyClientShutdownRequest) String() string
func (*NotifyClientShutdownRequest) Unmarshal ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) Unmarshal(dAtA []byte) error
func (*NotifyClientShutdownRequest) XXX_DiscardUnknown ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) XXX_DiscardUnknown()
func (*NotifyClientShutdownRequest) XXX_Marshal ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NotifyClientShutdownRequest) XXX_Merge ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) XXX_Merge(src proto.Message)
func (*NotifyClientShutdownRequest) XXX_Size ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) XXX_Size() int
func (*NotifyClientShutdownRequest) XXX_Unmarshal ¶ added in v1.9.0
func (m *NotifyClientShutdownRequest) XXX_Unmarshal(b []byte) error
type NotifyClientShutdownResponse ¶ added in v1.9.0
type NotifyClientShutdownResponse struct { }
func (*NotifyClientShutdownResponse) Descriptor ¶ added in v1.9.0
func (*NotifyClientShutdownResponse) Descriptor() ([]byte, []int)
func (*NotifyClientShutdownResponse) Equal ¶ added in v1.9.0
func (this *NotifyClientShutdownResponse) Equal(that interface{}) bool
func (*NotifyClientShutdownResponse) GoString ¶ added in v1.9.0
func (this *NotifyClientShutdownResponse) GoString() string
func (*NotifyClientShutdownResponse) Marshal ¶ added in v1.9.0
func (m *NotifyClientShutdownResponse) Marshal() (dAtA []byte, err error)
func (*NotifyClientShutdownResponse) MarshalTo ¶ added in v1.9.0
func (m *NotifyClientShutdownResponse) MarshalTo(dAtA []byte) (int, error)
func (*NotifyClientShutdownResponse) MarshalToSizedBuffer ¶ added in v1.9.0
func (m *NotifyClientShutdownResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NotifyClientShutdownResponse) ProtoMessage ¶ added in v1.9.0
func (*NotifyClientShutdownResponse) ProtoMessage()
func (*NotifyClientShutdownResponse) Reset ¶ added in v1.9.0
func (m *NotifyClientShutdownResponse) Reset()
func (*NotifyClientShutdownResponse) Size ¶ added in v1.9.0
func (m *NotifyClientShutdownResponse) Size() (n int)
func (*NotifyClientShutdownResponse) String ¶ added in v1.9.0
func (this *NotifyClientShutdownResponse) String() string
func (*NotifyClientShutdownResponse) Unmarshal ¶ added in v1.9.0
func (m *NotifyClientShutdownResponse) Unmarshal(dAtA []byte) error
func (*NotifyClientShutdownResponse) XXX_DiscardUnknown ¶ added in v1.9.0
func (m *NotifyClientShutdownResponse) XXX_DiscardUnknown()
func (*NotifyClientShutdownResponse) XXX_Marshal ¶ added in v1.9.0
func (m *NotifyClientShutdownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NotifyClientShutdownResponse) XXX_Merge ¶ added in v1.9.0
func (m *NotifyClientShutdownResponse) XXX_Merge(src proto.Message)
func (*NotifyClientShutdownResponse) XXX_Size ¶ added in v1.9.0
func (m *NotifyClientShutdownResponse) XXX_Size() int
func (*NotifyClientShutdownResponse) XXX_Unmarshal ¶ added in v1.9.0
func (m *NotifyClientShutdownResponse) XXX_Unmarshal(b []byte) error
type UnimplementedFrontendServer ¶
type UnimplementedFrontendServer struct { }
UnimplementedFrontendServer can be embedded to have forward compatible implementations.
func (*UnimplementedFrontendServer) NotifyClientShutdown ¶ added in v1.9.0
func (*UnimplementedFrontendServer) NotifyClientShutdown(ctx context.Context, req *NotifyClientShutdownRequest) (*NotifyClientShutdownResponse, error)
func (*UnimplementedFrontendServer) Process ¶
func (*UnimplementedFrontendServer) Process(srv Frontend_ProcessServer) error
Click to show internal directories.
Click to hide internal directories.