storage

package
v0.0.0-...-8588863 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQL

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

func NewMySQL

func NewMySQL(ctx context.Context, conf *utils.Config) (*MySQL, error)

func (*MySQL) Close

func (m *MySQL) Close(ctx context.Context) error

func (*MySQL) UpdateMaxId

func (m *MySQL) UpdateMaxId(ctx context.Context, key string) (int64, error)

type Redis

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

func NewRedis

func NewRedis(ctx context.Context, conf *utils.Config) (*Redis, error)

func (*Redis) Close

func (r *Redis) Close(ctx context.Context) error

func (*Redis) UpdateMaxId

func (r *Redis) UpdateMaxId(ctx context.Context, tag string) (int64, error)

type Store

type Store interface {
	UpdateMaxId(ctx context.Context, key string) (int64, error)
	Close(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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