api

package
v0.0.0-...-8ac8335 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartAPI

func StartAPI(apiConfig string) error

@host api-dev.yulmails.io @BasePath / @tag.name entity @tag.name abuse @tag.name conservation

Types

type ConfDB

type ConfDB struct {
	// Username of the database
	Username string `yaml:"username"`
	// Password of the database
	Password string `yaml:"password"`
	// Host of the database
	Host string `yaml:"host"`
	// Port of the database
	Port int `yaml:"port"`
	// Name of the database to use
	Name string `yaml:"name"`
}

ConfDB is the database configuration

type ConfSrv

type ConfSrv struct {
	// Port to listen on
	Port int `yaml:"port"`
}

type Configuration

type Configuration struct {
	// Database configuration
	Database ConfDB `yaml:"database"`
	// Server configuration
	Server ConfSrv `yaml:"server"`
}

Configuration is the global configuration of the API server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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