Documentation ¶
Index ¶
Constants ¶
View Source
const (
PasswordKey = "pwd"
)
Variables ¶
View Source
var (
Codec = &MsgPackCodec{}
)
View Source
var ServiceDesc = grpc.ServiceDesc{ ServiceName: "zenodb", HandlerType: (*Server)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "query", Handler: queryHandler, ServerStreams: true, }, { StreamName: "follow", Handler: followHandler, ServerStreams: true, }, { StreamName: "remoteQuery", Handler: remoteQueryHandler, ServerStreams: true, ClientStreams: true, }, { StreamName: "insert", Handler: insertHandler, ClientStreams: true, }, }, }
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { NewInserter(ctx context.Context, stream string, opts ...grpc.CallOption) (Inserter, error) Query(ctx context.Context, sqlString string, includeMemStore bool, opts ...grpc.CallOption) (*common.QueryMetaData, func(onRow core.OnFlatRow) (*common.QueryStats, error), error) Follow(ctx context.Context, in *common.Follow, opts ...grpc.CallOption) (int, func() (data []byte, newOffset wal.Offset, err error), error) ProcessRemoteQuery(ctx context.Context, partition int, query planner.QueryClusterFN, timeout time.Duration, opts ...grpc.CallOption) error Close() error }
type ClientOpts ¶
type MsgPackCodec ¶
type MsgPackCodec struct { }
func (*MsgPackCodec) Marshal ¶
func (c *MsgPackCodec) Marshal(v interface{}) ([]byte, error)
func (*MsgPackCodec) String ¶
func (c *MsgPackCodec) String() string
func (*MsgPackCodec) Unmarshal ¶
func (c *MsgPackCodec) Unmarshal(data []byte, v interface{}) error
type RegisterQueryHandler ¶
type RegisterQueryHandler struct {
Partition int
}
type RemoteQueryResult ¶
type Server ¶
type Server interface { Insert(stream grpc.ServerStream) error Query(*Query, grpc.ServerStream) error Follow(*common.Follow, grpc.ServerStream) error HandleRemoteQueries(r *RegisterQueryHandler, stream grpc.ServerStream) error }
type SnappyListener ¶
type SourceInfo ¶
type SourceInfo struct {
ID int
}
Click to show internal directories.
Click to hide internal directories.