config

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(domain constants.Domain, appSettings *config.AppSettings, level log.Level) *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