models

package
v0.0.0-...-b5d40b6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseConfig

type DatabaseConfig struct {
	DatabaseName string `json:"dbName"`
	User         string `json:"user"`
	Password     string `json:"password"`
	IpAddress    string `json:"ip"`
	Port         string `json:"port"`
	Charset      string `json:"charset"`
	ParseTime    string `json:"parseTime"`
	Loc          string `json:"loc"`
}

func CreateDbConfig

func CreateDbConfig(content []byte) *DatabaseConfig

func (*DatabaseConfig) GetDsn

func (dbConfig *DatabaseConfig) GetDsn() string

type MovieApiConfig

type MovieApiConfig struct {
	Url    string `json:"url"`
	ApiKey string `json:"apiKey"`
	Auth   string `json:"auth"`
}

func CreateMovieApiConfig

func CreateMovieApiConfig(content []byte) MovieApiConfig

Jump to

Keyboard shortcuts

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