models

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerInfo

type LoggerInfo struct {
	StartTime string
	Status    int
	Duration  string
	HostName  string
	Method    string
	Path      string
	Request   interface{}
	Response  interface{}
}

func (*LoggerInfo) MethodColor

func (p *LoggerInfo) MethodColor() string

MethodColor is the ANSI color for appropriately logging http method to a terminal.

func (*LoggerInfo) ResetColor

func (p *LoggerInfo) ResetColor() string

ResetColor resets all escape attributes.

func (*LoggerInfo) StatusCodeColor

func (p *LoggerInfo) StatusCodeColor() string

StatusCodeColor is the ANSI color for appropriately logging http status code to a terminal.

Jump to

Keyboard shortcuts

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