proto

package
v0.0.0-...-9c8d8c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Check) GetHost

func (m *Check) GetHost() string

func (*Check) GetPath

func (m *Check) GetPath() string

func (*Check) GetPort

func (m *Check) GetPort() int32

func (*Check) GetSchema

func (m *Check) GetSchema() string

func (*Check) GetType

func (m *Check) GetType() string

func (*Check) ProtoMessage

func (*Check) ProtoMessage()

func (*Check) Reset

func (m *Check) Reset()

func (*Check) String

func (m *Check) String() string

func (*Check) XXX_DiscardUnknown

func (m *Check) XXX_DiscardUnknown()

func (*Check) XXX_Marshal

func (m *Check) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Check) XXX_Merge

func (dst *Check) XXX_Merge(src proto.Message)

func (*Check) XXX_Size

func (m *Check) XXX_Size() int

func (*Check) XXX_Unmarshal

func (m *Check) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Result) GetMessage

func (m *Result) GetMessage() string

func (*Result) GetStatusCode

func (m *Result) GetStatusCode() int32

func (*Result) GetSuccess

func (m *Result) GetSuccess() bool

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) String

func (m *Result) String() string

func (*Result) XXX_DiscardUnknown

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal

func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Result) XXX_Merge

func (dst *Result) XXX_Merge(src proto.Message)

func (*Result) XXX_Size

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal

func (m *Result) XXX_Unmarshal(b []byte) error

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 RouteCall_ExecuteSqlClient

type RouteCall_ExecuteSqlClient interface {
	Send(*RouteSql) error
	Recv() (*RouteSql, error)
	grpc.ClientStream
}

type RouteCall_ExecuteSqlServer

type RouteCall_ExecuteSqlServer interface {
	Send(*RouteSql) error
	Recv() (*RouteSql, 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) Descriptor() ([]byte, []int)

func (*RouteSql) GetDatasource

func (m *RouteSql) GetDatasource() *Datasource

func (*RouteSql) GetMessage

func (m *RouteSql) GetMessage() string

func (*RouteSql) GetScope

func (m *RouteSql) GetScope() string

func (*RouteSql) GetSql

func (m *RouteSql) GetSql() string

func (*RouteSql) GetSuccess

func (m *RouteSql) GetSuccess() bool

func (*RouteSql) ProtoMessage

func (*RouteSql) ProtoMessage()

func (*RouteSql) Reset

func (m *RouteSql) Reset()

func (*RouteSql) String

func (m *RouteSql) String() string

func (*RouteSql) XXX_DiscardUnknown

func (m *RouteSql) XXX_DiscardUnknown()

func (*RouteSql) XXX_Marshal

func (m *RouteSql) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RouteSql) XXX_Merge

func (dst *RouteSql) XXX_Merge(src proto.Message)

func (*RouteSql) XXX_Size

func (m *RouteSql) XXX_Size() int

func (*RouteSql) XXX_Unmarshal

func (m *RouteSql) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL