config

package
v0.0.0-...-590dba6 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProfileCollection string = "profile"

ProfileCollection collection for profile

View Source
var UserCollection string = "user"

UserCollection collection for user

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerHost         string        // address that server will listening on
	MongoConnectionURI string        // mongo db connection uri
	DatabaseName       string        // mongo db database name
	SecretKey          string        // JWT SecretKey
	ExpirationDuration time.Duration // JWT ExpirationDuration
}

Config is the server configuration structure.

func NewConfig

func NewConfig() *Config

NewConfig will create and initialize config struct

Jump to

Keyboard shortcuts

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