config

package
v0.0.0-...-a9fa8a7 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 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
	Email    Email
	Razorpay Razorpay
}

func LoadConfig

func LoadConfig(path string) Config

type Db

type Db struct {
	Url string
}

type Email

type Email struct {
	Username string
	Password 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
}

type Razorpay

type Razorpay struct {
	Key    string
	Secret string
}

Jump to

Keyboard shortcuts

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