Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBlankSession = errors.New("err_blanksession")
)
Functions ¶
func NewRepository ¶
func NewRepository(session Session) *repository
func Setup ¶
func Setup(cfg *Configuration) error
Types ¶
type Configuration ¶
type Configuration struct { URL string `json:"url" mapstructure:"url"` Keyspace string `json:"keyspace" mapstructure:"keyspace"` Username string `json:"username" mapstructure:"username"` Password string `json:"password" mapstructure:"password"` NumConns int `json:"numConns" mapstructure:"numConns"` KeepAlive time.Duration `json:"keepAliveDuration" mapstructure:"keepAliveDuration"` }
var (
Config *Configuration
)
func (Configuration) String ¶
func (c Configuration) String() string
Click to show internal directories.
Click to hide internal directories.