Documentation ¶
Index ¶
- type BleveDocument
- type Option
- type Options
- type Service
- func (s *Service) Databases(c context.Context, dbreq *proto.DatabasesRequest, ...) error
- func (s *Service) Delete(c context.Context, dreq *proto.DeleteRequest, dres *proto.DeleteResponse) error
- func (s *Service) List(context.Context, *proto.ListRequest, proto.Store_ListStream) error
- func (s *Service) Read(c context.Context, rreq *proto.ReadRequest, rres *proto.ReadResponse) error
- func (s *Service) Tables(ctx context.Context, in *proto.TablesRequest, out *proto.TablesResponse) error
- func (s *Service) Write(c context.Context, wreq *proto.WriteRequest, wres *proto.WriteResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BleveDocument ¶
type BleveDocument struct { Metadata map[string]*proto.Field `json:"metadata"` Database string `json:"database"` Table string `json:"table"` }
BleveDocument wraps the generated Record.Metadata and adds a property that is used to distinguish documents in the index.
type Option ¶
type Option func(o *Options)
Option defines a single option function.
type Options ¶
type Options struct { Logger log.Logger Config *config.Config Database, Table string Nodes []string }
Options defines the available options for this package.
type Service ¶
Service implements the AccountsServiceHandler interface
func (*Service) Databases ¶
func (s *Service) Databases(c context.Context, dbreq *proto.DatabasesRequest, dbres *proto.DatabasesResponse) error
Databases implements the StoreHandler interface.
func (*Service) Delete ¶
func (s *Service) Delete(c context.Context, dreq *proto.DeleteRequest, dres *proto.DeleteResponse) error
Delete implements the StoreHandler interface.
Click to show internal directories.
Click to hide internal directories.