Help us shape the future of Go! Take the 2026 Go Developer Survey

datastore

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	ID string
	//Hosts coma separated list of hostnmae
	Hostnames string
	Port      int
	Timeout   *Timeout
}

Connection represents a connection

func (*Connection) Init

func (c *Connection) Init()

Init initialises connection

func (*Connection) Validate

func (c *Connection) Validate() error

type Reference

type Reference struct {
	Connection   string
	Namespace    string
	Dataset      string
	TimeToLiveMs int `json:",omitempty" yaml:",omitempty"`

	RetryTimeMs int `json:",omitempty" yaml:",omitempty"`

	ReadOnly bool `json:",omitempty" yaml:",omitempty"`
	// contains filtered or unexported fields
}

Reference datastore reference

func (*Reference) Init

func (d *Reference) Init()

func (*Reference) RetryTime

func (d *Reference) RetryTime() time.Duration

func (*Reference) TimeToLive

func (d *Reference) TimeToLive() time.Duration

type Timeout

type Timeout struct {
	Unit       string
	Connection int
	Socket     int
	Total      int
}

Timeout timout setting

func (*Timeout) DurationUnit

func (t *Timeout) DurationUnit() time.Duration

Jump to

Keyboard shortcuts

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