engine

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExampleEngine

type ExampleEngine struct {
	artisanalinteger.Engine
	// contains filtered or unexported fields
}

func NewExampleEngine

func NewExampleEngine(dsn string) (*ExampleEngine, error)

func (*ExampleEngine) Close

func (eng *ExampleEngine) Close() error

func (*ExampleEngine) LastInt

func (eng *ExampleEngine) LastInt() (int64, error)

func (*ExampleEngine) NextInt

func (eng *ExampleEngine) NextInt() (int64, error)

func (*ExampleEngine) SetIncrement

func (eng *ExampleEngine) SetIncrement(i int64) error

func (*ExampleEngine) SetKey

func (eng *ExampleEngine) SetKey(k string) error

func (*ExampleEngine) SetLastInt

func (eng *ExampleEngine) SetLastInt(i int64) error

func (*ExampleEngine) SetOffset

func (eng *ExampleEngine) SetOffset(i int64) error

type FSEngine

type FSEngine struct {
	artisanalinteger.Engine
	// contains filtered or unexported fields
}

func NewFSEngine

func NewFSEngine(dsn string) (*FSEngine, error)

func (*FSEngine) Close

func (eng *FSEngine) Close() error

func (*FSEngine) LastInt

func (eng *FSEngine) LastInt() (int64, error)

func (*FSEngine) NextInt

func (eng *FSEngine) NextInt() (int64, error)

func (*FSEngine) SetIncrement

func (eng *FSEngine) SetIncrement(i int64) error

func (*FSEngine) SetKey

func (eng *FSEngine) SetKey(k string) error

func (*FSEngine) SetLastInt

func (eng *FSEngine) SetLastInt(i int64) error

func (*FSEngine) SetOffset

func (eng *FSEngine) SetOffset(i int64) error

type MemoryEngine

type MemoryEngine struct {
	artisanalinteger.Engine
	// contains filtered or unexported fields
}

func NewMemoryEngine

func NewMemoryEngine(dsn string) (*MemoryEngine, error)

func (*MemoryEngine) Close

func (eng *MemoryEngine) Close() error

func (*MemoryEngine) LastInt

func (eng *MemoryEngine) LastInt() (int64, error)

func (*MemoryEngine) NextInt

func (eng *MemoryEngine) NextInt() (int64, error)

func (*MemoryEngine) SetIncrement

func (eng *MemoryEngine) SetIncrement(i int64) error

func (*MemoryEngine) SetKey

func (eng *MemoryEngine) SetKey(k string) error

func (*MemoryEngine) SetLastInt

func (eng *MemoryEngine) SetLastInt(i int64) error

func (*MemoryEngine) SetOffset

func (eng *MemoryEngine) SetOffset(i int64) error

Jump to

Keyboard shortcuts

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