Documentation ¶
Index ¶
- Constants
- Variables
- func CfgWithContext(ctx context.Context, cfg *Configs) context.Context
- func ConnFromContext(ctx context.Context) (*gocql.Session, error)
- func ConnWithContext(ctx context.Context, conn *gocql.Session) context.Context
- func Migrate(ctx context.Context, dirs []string) error
- func NewConnection(ctx context.Context) (*gocql.Session, error)
- type Configs
- type Get
- type Put
Constants ¶
View Source
const CTXKEY_CFG ctxkey = "ackstream.xstorage.configs"
View Source
const CTXKEY_CONN ctxkey = "ackstream.xstorage.connection"
Variables ¶
View Source
var ErrCfgNotFound = errors.New("no configs was set")
View Source
var ErrConnNotFound = errors.New("no connection was initialized")
View Source
var ErrEventInvalid = errors.New("event is not valid")
View Source
var ErrEventQueryInvalid = errors.New("event query is not valid")
Functions ¶
func ConnWithContext ¶
Types ¶
type Configs ¶
Click to show internal directories.
Click to hide internal directories.