repo

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewImpl, NewOptions)

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IRepo

type IRepo interface {
	// Login serve caller to login the system
	Login(ctx contextx.Contextx, id, password string) (info *user.Profile, err error)
}

IRepo declare repo service function

func CreateIRepo

func CreateIRepo(path string) (IRepo, error)

func NewImpl

func NewImpl(o *Options, rd *redis.Pool) IRepo

NewImpl serve caller to create an IRepo

type Options

type Options struct {
	Endpoint   string `json:"endpoint" yaml:"endpoint"`
	AppVersion string `json:"appVersion" yaml:"appVersion"`
}

Options declare app's configuration

func NewOptions

func NewOptions(v *viper.Viper) (*Options, error)

NewOptions serve caller to create Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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