data

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 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 Database

type Database struct {
	Address    string `json:"address"  default:"127.0.0.1"`
	Username   string `json:"username"  default:""`
	Password   string `json:"password"  default:""`
	BucketName string `json:"bucket_name" default:"metadata"`
}

type Error

type Error struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

func (*Error) Error

func (e *Error) Error() string

type Errors

type Errors struct {
	Metadata MetadataErrors
}
var Err Errors

type Global

type Global struct {
	Debug       bool `json:"debug"`
	AutoProvide bool `json:"auto_provide"`
}

type Logs

type Logs struct {
	Default string `json:"default"`
	Error   string `json:"error"`
}

type MetadataErrors

type MetadataErrors struct {
	Invalid    Error                 `json:"empty"`
	MissingUrl Error                 `json:"missing_url"`
	General    MetadataGeneralErrors `json:"general"`
}

type MetadataGeneralErrors

type MetadataGeneralErrors struct {
	MissingName             Error `json:"missing_name"`
	MissingFormat           Error `json:"missing_format"`
	MissingCreationTime     Error `json:"missing_creation_time"`
	InvalidModificationTime Error `json:"invalid_modification_time"`
}

type Routes

type Routes struct {
	Ping          string               `json:"ping"`
	PingDatabase  string               `json:"ping_database"`
	Insert        string               `json:"insert"`
	Delete        string               `json:"delete"`
	Get           string               `json:"get"`
	Update        string               `json:"update"`
	Search        string               `json:"search"`
	SearchOptions nefts_config.Options `json:"search_options"`
}

func (*Routes) Provided

func (r *Routes) Provided() bool

type Server

type Server struct {
	Port string `json:"port" default:"8080"`
	Logs Logs   `json:"logs"`
}

func (*Server) Provided

func (s *Server) Provided() bool

Jump to

Keyboard shortcuts

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