configs

package
v1.1.48 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestConfig

func TestConfig(domain core.Domain) *config.Config

func TestConfigWithLogrusAndRedisStore

func TestConfigWithLogrusAndRedisStore(domain core.Domain) *config.Config

Types

type Logrus

type Logrus struct {
}

use logrus implement log.Logger

func (Logrus) Debug

func (Logrus) Debug(ctx context.Context, args ...interface{})

func (Logrus) Error

func (Logrus) Error(ctx context.Context, args ...interface{})

func (Logrus) Info

func (Logrus) Info(ctx context.Context, args ...interface{})

func (Logrus) Warn

func (Logrus) Warn(ctx context.Context, args ...interface{})

type RedisStore

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

use redis implement store.Store

func NewRedisStore

func NewRedisStore() *RedisStore

func (*RedisStore) Get

func (rs *RedisStore) Get(ctx context.Context, key string) (string, error)

func (*RedisStore) Put

func (rs *RedisStore) Put(ctx context.Context, key string, value string, expired time.Duration) error

Jump to

Keyboard shortcuts

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