external

package
v0.0.0-...-41b38f0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	GetAuthTokenFromContext(ctx context.Context) (*entity.AuthToken, error)
}

type Cacher

type Cacher interface {
	LPush(key string, values []byte) error
	SAdd(key string, values []byte) error
	LRange(key string, start, stop int64) ([]string, error)
	SMembers(key string) ([]string, error)
}

type Transactor

type Transactor interface {
	Begin(ctx context.Context) (context.Context, error)
	Commit(ctx context.Context) error
	Rollback(ctx context.Context) error
	GetTransactionFromCtx(ctx context.Context) (*sql.Tx, bool)
}

Jump to

Keyboard shortcuts

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