config

package
v0.0.0-...-e3fbaf4 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name  string
	Url   string
	Stage string
}

type Config

type Config struct {
	App      App
	Db       Db
	Jwt      Jwt
	Kafka    Kafka
	Grpc     Grpc
	Paginate Paginate
}

func LoadConfig

func LoadConfig(path string) Config

type Db

type Db struct {
	Url string
}

type Grpc

type Grpc struct {
	AuthUrl    string
	InventUrl  string
	NftUrl     string
	PaymentUrl string
	UserUrl    string
}

type Jwt

type Jwt struct {
	AccessSecretKey  string
	RefreshSecretKey string
	ApiSecretKey     string
	AccessDuration   int64
	RefreshDuration  int64
}

type Kafka

type Kafka struct {
	Url    string
	ApiKey string
	Secret string
}

type Paginate

type Paginate struct {
	NftNextPageBasedUrl       string
	InventoryNextPageBasedUrl string
}

Jump to

Keyboard shortcuts

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