Documentation
¶
Index ¶
- func RegisterRouteCallServer(s *grpc.Server, srv RouteCallServer)
- type Check
- func (*Check) Descriptor() ([]byte, []int)
- func (m *Check) GetHost() string
- func (m *Check) GetPath() string
- func (m *Check) GetPort() int32
- func (m *Check) GetSchema() string
- func (m *Check) GetType() string
- func (*Check) ProtoMessage()
- func (m *Check) Reset()
- func (m *Check) String() string
- func (m *Check) XXX_DiscardUnknown()
- func (m *Check) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Check) XXX_Merge(src proto.Message)
- func (m *Check) XXX_Size() int
- func (m *Check) XXX_Unmarshal(b []byte) error
- type Datasource
- func (*Datasource) Descriptor() ([]byte, []int)
- func (m *Datasource) GetDatabase() string
- func (m *Datasource) GetHost() string
- func (m *Datasource) GetPassword() string
- func (m *Datasource) GetPort() int32
- func (m *Datasource) GetType() string
- func (m *Datasource) GetUsername() string
- func (*Datasource) ProtoMessage()
- func (m *Datasource) Reset()
- func (m *Datasource) String() string
- func (m *Datasource) XXX_DiscardUnknown()
- func (m *Datasource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Datasource) XXX_Merge(src proto.Message)
- func (m *Datasource) XXX_Size() int
- func (m *Datasource) XXX_Unmarshal(b []byte) error
- type HeaderValue
- func (*HeaderValue) Descriptor() ([]byte, []int)
- func (m *HeaderValue) GetValue() []string
- func (*HeaderValue) ProtoMessage()
- func (m *HeaderValue) Reset()
- func (m *HeaderValue) String() string
- func (m *HeaderValue) XXX_DiscardUnknown()
- func (m *HeaderValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HeaderValue) XXX_Merge(src proto.Message)
- func (m *HeaderValue) XXX_Size() int
- func (m *HeaderValue) XXX_Unmarshal(b []byte) error
- type Result
- func (*Result) Descriptor() ([]byte, []int)
- func (m *Result) GetMessage() string
- func (m *Result) GetStatusCode() int32
- func (m *Result) GetSuccess() bool
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) String() string
- func (m *Result) XXX_DiscardUnknown()
- func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Result) XXX_Merge(src proto.Message)
- func (m *Result) XXX_Size() int
- func (m *Result) XXX_Unmarshal(b []byte) error
- type RouteCallClient
- type RouteCallServer
- type RouteCall_ExecuteCommandClient
- type RouteCall_ExecuteCommandServer
- type RouteCall_ExecuteRequestClient
- type RouteCall_ExecuteRequestServer
- type RouteCall_ExecuteSqlClient
- type RouteCall_ExecuteSqlServer
- type RouteCommand
- func (*RouteCommand) Descriptor() ([]byte, []int)
- func (m *RouteCommand) GetArgs() []string
- func (m *RouteCommand) GetMessage() string
- func (m *RouteCommand) GetName() string
- func (m *RouteCommand) GetStatusCode() int32
- func (m *RouteCommand) GetSuccess() bool
- func (*RouteCommand) ProtoMessage()
- func (m *RouteCommand) Reset()
- func (m *RouteCommand) String() string
- func (m *RouteCommand) XXX_DiscardUnknown()
- func (m *RouteCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RouteCommand) XXX_Merge(src proto.Message)
- func (m *RouteCommand) XXX_Size() int
- func (m *RouteCommand) XXX_Unmarshal(b []byte) error
- type RouteRequest
- func (*RouteRequest) Descriptor() ([]byte, []int)
- func (m *RouteRequest) GetBody() string
- func (m *RouteRequest) GetHeader() map[string]*HeaderValue
- func (m *RouteRequest) GetHost() string
- func (m *RouteRequest) GetMethod() string
- func (m *RouteRequest) GetPath() string
- func (m *RouteRequest) GetPort() int32
- func (m *RouteRequest) GetSchema() string
- func (*RouteRequest) ProtoMessage()
- func (m *RouteRequest) Reset()
- func (m *RouteRequest) String() string
- func (m *RouteRequest) XXX_DiscardUnknown()
- func (m *RouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RouteRequest) XXX_Merge(src proto.Message)
- func (m *RouteRequest) XXX_Size() int
- func (m *RouteRequest) XXX_Unmarshal(b []byte) error
- type RouteSql
- func (*RouteSql) Descriptor() ([]byte, []int)
- func (m *RouteSql) GetDatasource() *Datasource
- func (m *RouteSql) GetMessage() string
- func (m *RouteSql) GetScope() string
- func (m *RouteSql) GetSql() string
- func (m *RouteSql) GetSuccess() bool
- func (*RouteSql) ProtoMessage()
- func (m *RouteSql) Reset()
- func (m *RouteSql) String() string
- func (m *RouteSql) XXX_DiscardUnknown()
- func (m *RouteSql) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RouteSql) XXX_Merge(src proto.Message)
- func (m *RouteSql) XXX_Size() int
- func (m *RouteSql) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRouteCallServer ¶
func RegisterRouteCallServer(s *grpc.Server, srv RouteCallServer)
Types ¶
type Check ¶
type Check struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"` Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Check) Descriptor ¶
func (*Check) ProtoMessage ¶
func (*Check) ProtoMessage()
func (*Check) XXX_DiscardUnknown ¶
func (m *Check) XXX_DiscardUnknown()
func (*Check) XXX_Marshal ¶
func (*Check) XXX_Unmarshal ¶
type Datasource ¶
type Datasource struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Port int32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` Database string `protobuf:"bytes,6,opt,name=database,proto3" json:"database,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Datasource) Descriptor ¶
func (*Datasource) Descriptor() ([]byte, []int)
func (*Datasource) GetDatabase ¶
func (m *Datasource) GetDatabase() string
func (*Datasource) GetHost ¶
func (m *Datasource) GetHost() string
func (*Datasource) GetPassword ¶
func (m *Datasource) GetPassword() string
func (*Datasource) GetPort ¶
func (m *Datasource) GetPort() int32
func (*Datasource) GetType ¶
func (m *Datasource) GetType() string
func (*Datasource) GetUsername ¶
func (m *Datasource) GetUsername() string
func (*Datasource) ProtoMessage ¶
func (*Datasource) ProtoMessage()
func (*Datasource) Reset ¶
func (m *Datasource) Reset()
func (*Datasource) String ¶
func (m *Datasource) String() string
func (*Datasource) XXX_DiscardUnknown ¶
func (m *Datasource) XXX_DiscardUnknown()
func (*Datasource) XXX_Marshal ¶
func (m *Datasource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Datasource) XXX_Merge ¶
func (dst *Datasource) XXX_Merge(src proto.Message)
func (*Datasource) XXX_Size ¶
func (m *Datasource) XXX_Size() int
func (*Datasource) XXX_Unmarshal ¶
func (m *Datasource) XXX_Unmarshal(b []byte) error
type HeaderValue ¶
type HeaderValue struct { Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HeaderValue) Descriptor ¶
func (*HeaderValue) Descriptor() ([]byte, []int)
func (*HeaderValue) GetValue ¶
func (m *HeaderValue) GetValue() []string
func (*HeaderValue) ProtoMessage ¶
func (*HeaderValue) ProtoMessage()
func (*HeaderValue) Reset ¶
func (m *HeaderValue) Reset()
func (*HeaderValue) String ¶
func (m *HeaderValue) String() string
func (*HeaderValue) XXX_DiscardUnknown ¶
func (m *HeaderValue) XXX_DiscardUnknown()
func (*HeaderValue) XXX_Marshal ¶
func (m *HeaderValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeaderValue) XXX_Merge ¶
func (dst *HeaderValue) XXX_Merge(src proto.Message)
func (*HeaderValue) XXX_Size ¶
func (m *HeaderValue) XXX_Size() int
func (*HeaderValue) XXX_Unmarshal ¶
func (m *HeaderValue) XXX_Unmarshal(b []byte) error
type Result ¶
type Result struct { // The name of the feature. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` StatusCode int32 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Result) Descriptor ¶
func (*Result) GetMessage ¶
func (*Result) GetStatusCode ¶
func (*Result) GetSuccess ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) XXX_DiscardUnknown ¶
func (m *Result) XXX_DiscardUnknown()
func (*Result) XXX_Marshal ¶
func (*Result) XXX_Unmarshal ¶
type RouteCallClient ¶
type RouteCallClient interface { CheckHealth(ctx context.Context, in *Check, opts ...grpc.CallOption) (*Result, error) ExecuteSql(ctx context.Context, opts ...grpc.CallOption) (RouteCall_ExecuteSqlClient, error) ExecuteCommand(ctx context.Context, opts ...grpc.CallOption) (RouteCall_ExecuteCommandClient, error) ExecuteRequest(ctx context.Context, opts ...grpc.CallOption) (RouteCall_ExecuteRequestClient, error) }
RouteCallClient is the client API for RouteCall service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRouteCallClient ¶
func NewRouteCallClient(cc *grpc.ClientConn) RouteCallClient
type RouteCallServer ¶
type RouteCallServer interface { CheckHealth(context.Context, *Check) (*Result, error) ExecuteSql(RouteCall_ExecuteSqlServer) error ExecuteCommand(RouteCall_ExecuteCommandServer) error ExecuteRequest(RouteCall_ExecuteRequestServer) error }
RouteCallServer is the server API for RouteCall service.
type RouteCall_ExecuteCommandClient ¶
type RouteCall_ExecuteCommandClient interface { Send(*RouteCommand) error Recv() (*RouteCommand, error) grpc.ClientStream }
type RouteCall_ExecuteCommandServer ¶
type RouteCall_ExecuteCommandServer interface { Send(*RouteCommand) error Recv() (*RouteCommand, error) grpc.ServerStream }
type RouteCall_ExecuteRequestClient ¶
type RouteCall_ExecuteRequestClient interface { Send(*RouteRequest) error Recv() (*Result, error) grpc.ClientStream }
type RouteCall_ExecuteRequestServer ¶
type RouteCall_ExecuteRequestServer interface { Send(*Result) error Recv() (*RouteRequest, error) grpc.ServerStream }
type RouteCommand ¶
type RouteCommand struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` StatusCode int32 `protobuf:"varint,5,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RouteCommand) Descriptor ¶
func (*RouteCommand) Descriptor() ([]byte, []int)
func (*RouteCommand) GetArgs ¶
func (m *RouteCommand) GetArgs() []string
func (*RouteCommand) GetMessage ¶
func (m *RouteCommand) GetMessage() string
func (*RouteCommand) GetName ¶
func (m *RouteCommand) GetName() string
func (*RouteCommand) GetStatusCode ¶
func (m *RouteCommand) GetStatusCode() int32
func (*RouteCommand) GetSuccess ¶
func (m *RouteCommand) GetSuccess() bool
func (*RouteCommand) ProtoMessage ¶
func (*RouteCommand) ProtoMessage()
func (*RouteCommand) Reset ¶
func (m *RouteCommand) Reset()
func (*RouteCommand) String ¶
func (m *RouteCommand) String() string
func (*RouteCommand) XXX_DiscardUnknown ¶
func (m *RouteCommand) XXX_DiscardUnknown()
func (*RouteCommand) XXX_Marshal ¶
func (m *RouteCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RouteCommand) XXX_Merge ¶
func (dst *RouteCommand) XXX_Merge(src proto.Message)
func (*RouteCommand) XXX_Size ¶
func (m *RouteCommand) XXX_Size() int
func (*RouteCommand) XXX_Unmarshal ¶
func (m *RouteCommand) XXX_Unmarshal(b []byte) error
type RouteRequest ¶
type RouteRequest struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` Header map[string]*HeaderValue `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RouteRequest) Descriptor ¶
func (*RouteRequest) Descriptor() ([]byte, []int)
func (*RouteRequest) GetBody ¶
func (m *RouteRequest) GetBody() string
func (*RouteRequest) GetHeader ¶
func (m *RouteRequest) GetHeader() map[string]*HeaderValue
func (*RouteRequest) GetHost ¶
func (m *RouteRequest) GetHost() string
func (*RouteRequest) GetMethod ¶
func (m *RouteRequest) GetMethod() string
func (*RouteRequest) GetPath ¶
func (m *RouteRequest) GetPath() string
func (*RouteRequest) GetPort ¶
func (m *RouteRequest) GetPort() int32
func (*RouteRequest) GetSchema ¶
func (m *RouteRequest) GetSchema() string
func (*RouteRequest) ProtoMessage ¶
func (*RouteRequest) ProtoMessage()
func (*RouteRequest) Reset ¶
func (m *RouteRequest) Reset()
func (*RouteRequest) String ¶
func (m *RouteRequest) String() string
func (*RouteRequest) XXX_DiscardUnknown ¶
func (m *RouteRequest) XXX_DiscardUnknown()
func (*RouteRequest) XXX_Marshal ¶
func (m *RouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RouteRequest) XXX_Merge ¶
func (dst *RouteRequest) XXX_Merge(src proto.Message)
func (*RouteRequest) XXX_Size ¶
func (m *RouteRequest) XXX_Size() int
func (*RouteRequest) XXX_Unmarshal ¶
func (m *RouteRequest) XXX_Unmarshal(b []byte) error
type RouteSql ¶
type RouteSql struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` Sql string `protobuf:"bytes,3,opt,name=sql,proto3" json:"sql,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` Datasource *Datasource `protobuf:"bytes,5,opt,name=datasource,proto3" json:"datasource,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RouteSql) Descriptor ¶
func (*RouteSql) GetDatasource ¶
func (m *RouteSql) GetDatasource() *Datasource
func (*RouteSql) GetMessage ¶
func (*RouteSql) GetSuccess ¶
func (*RouteSql) ProtoMessage ¶
func (*RouteSql) ProtoMessage()
func (*RouteSql) XXX_DiscardUnknown ¶
func (m *RouteSql) XXX_DiscardUnknown()
func (*RouteSql) XXX_Marshal ¶
func (*RouteSql) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.