database

package
v0.0.0-...-07e2f69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSchema

func InitSchema(session *gocql.Session) error

Types

type Config

type Config struct {
	Hosts       []string
	Keyspace    string
	Timeout     time.Duration
	Retries     int
	ConnectWait time.Duration
}

func NewConfig

func NewConfig() *Config

func (*Config) WithHosts

func (c *Config) WithHosts(hosts []string) *Config

func (*Config) WithKeyspace

func (c *Config) WithKeyspace(keyspace string) *Config

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(config *Config) (*Connection, error)

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) Session

func (c *Connection) Session() *gocql.Session

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL