Documentation ¶
Index ¶
- Constants
- func ConfigAdd(path string)
- func NewSession(ctx context.Context, plugins ...Plugin) (*gocql.Session, error)
- func NewSessionWithConfigPath(ctx context.Context, path string, plugins ...Plugin) (*gocql.Session, error)
- func NewSessionWithOptions(ctx context.Context, o *Options, plugins ...Plugin) (session *gocql.Session, err error)
- type ManagedSession
- func NewManagedSession(ctx context.Context, plugins ...Plugin) (*ManagedSession, error)
- func NewManagedSessionWithConfigPath(ctx context.Context, path string, plugins ...Plugin) (*ManagedSession, error)
- func NewManagedSessionWithOptions(ctx context.Context, opts *Options, plugins ...Plugin) (*ManagedSession, error)
- type Options
- type Plugin
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ManagedSession ¶
func NewManagedSession ¶
func NewManagedSession(ctx context.Context, plugins ...Plugin) (*ManagedSession, error)
type Options ¶
type Options struct { Hosts []string Port int DC string `config:"dc"` Username string Password string CQLVersion string `config:"CQLVersion"` ProtoVersion int Timeout time.Duration ConnectTimeout time.Duration Keyspace string NumConns int Consistency string SocketKeepalive time.Duration MaxPreparedStmts int MaxRoutingKeyInfo int PageSize int DefaultTimestamp bool ReconnectInterval time.Duration MaxWaitSchemaAgreement time.Duration DisableInitialHostLookup bool WriteCoalesceWaitTime time.Duration }
func NewOptions ¶
func NewOptionsWithPath ¶
Click to show internal directories.
Click to hide internal directories.