Documentation ¶
Index ¶
- type ExampleEngine
- func (eng *ExampleEngine) Close() error
- func (eng *ExampleEngine) LastInt() (int64, error)
- func (eng *ExampleEngine) NextInt() (int64, error)
- func (eng *ExampleEngine) SetIncrement(i int64) error
- func (eng *ExampleEngine) SetKey(k string) error
- func (eng *ExampleEngine) SetLastInt(i int64) error
- func (eng *ExampleEngine) SetOffset(i int64) error
- type FSEngine
- func (eng *FSEngine) Close() error
- func (eng *FSEngine) LastInt() (int64, error)
- func (eng *FSEngine) NextInt() (int64, error)
- func (eng *FSEngine) SetIncrement(i int64) error
- func (eng *FSEngine) SetKey(k string) error
- func (eng *FSEngine) SetLastInt(i int64) error
- func (eng *FSEngine) SetOffset(i int64) error
- type MemoryEngine
- func (eng *MemoryEngine) Close() error
- func (eng *MemoryEngine) LastInt() (int64, error)
- func (eng *MemoryEngine) NextInt() (int64, error)
- func (eng *MemoryEngine) SetIncrement(i int64) error
- func (eng *MemoryEngine) SetKey(k string) error
- func (eng *MemoryEngine) SetLastInt(i int64) error
- func (eng *MemoryEngine) SetOffset(i int64) error
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 (*FSEngine) SetIncrement ¶
func (*FSEngine) SetLastInt ¶
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
Click to show internal directories.
Click to hide internal directories.