models

package
v0.0.0-...-086bdb0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbConfig

type DbConfig struct {
	Db_host     string `json:"db_host"`
	Db_port     string `json:"db_port"`
	Db_user     string `json:"db_user"`
	Db_password string `json:"db_password"`
	Db_name     string `json:"db_name"`
	Sslmode     string `json:"sslmode"`
}

type ServiceConfig

type ServiceConfig struct {
	Port string `json:"port"`
}

type Url

type Url struct {
	LongUrl  string `json:"long_url" db:"longurl" binding:"required"`
	ShortUrl string `json:"short_url" db:"shorturl"`
}

func (*Url) GetShorturl

func (url *Url) GetShorturl()

Jump to

Keyboard shortcuts

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