Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIndexClient ¶
func NewIndexClient(c BTSConfig) (chunk.IndexClient, error)
func NewObjectClient ¶
func NewObjectClient(c BOSConfig) (chunk.ObjectClient, error)
NewObjectClient return bos-backed object btsClient.
Types ¶
type BOSClient ¶
type BOSClient struct {
// contains filtered or unexported fields
}
func (*BOSClient) GetChunks ¶
func (client *BOSClient) GetChunks(ctx context.Context, chunks []chunk.Chunk) ([]chunk.Chunk, error)
GutChunks implements chunk.ObjectClient interface, get chunks parallelly.
type BOSConfig ¶
type BOSConfig struct { Endpoint string `yaml:"endpoint"` AccessKey string `yaml:"ak"` SecretKey string `yaml:"sk"` Bucket string `yaml:"bucket"` Prefix string `yaml:"prefix"` }
Configuration for Baidu Object Storage (BOS).
type BTSClient ¶
type BTSClient struct {
// contains filtered or unexported fields
}
func (*BTSClient) BatchWrite ¶
func (*BTSClient) NewWriteBatch ¶
func (c *BTSClient) NewWriteBatch() chunk.WriteBatch
func (*BTSClient) QueryPages ¶
Click to show internal directories.
Click to hide internal directories.