models

package
v0.0.0-...-f772103 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 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 Data

type Data struct {
	Name    string `json:"name"`
	Surname string `json:"surname"`
}

type Exception

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

type LogFormat

type LogFormat struct {
	AppName   string      `json:"app_name"`
	Function  string      `json:"function"`
	File      string      `json:"file"`
	Line      int         `json:"line"`
	Level     string      `json:"level"`
	Message   interface{} `json:"message"`
	Timestamp time.Time   `json:"timestamp"`
}

type Response

type Response struct {
	AppName     string      `json:"app_name"`
	Data        interface{} `json:"data"`
	Description string      `json:"description"`
	Exception   interface{} `json:"exception"`
	Status      int         `json:"status"`
	Timestamp   string      `json:"timestamp"`
	Transaction uuid.UUID   `json:"transaction"`
}

Jump to

Keyboard shortcuts

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