model

package
v0.0.0-...-c907f33 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	IPAddress    string `json:"ip_address"`
	ErrorMessage string `json:"error_message"`
	ErrorCode    string `json:"error_code"`
}

type ErrorStatus

type ErrorStatus struct {
	Error *Error `json:"error"`
}

func (ErrorStatus) IsStatus

func (ErrorStatus) IsStatus()

type IP

type IP struct {
	UUID         string    `json:"uuid"`
	CreatedAt    time.Time `json:"created_at"`
	UpdatedAt    time.Time `json:"updated_at"`
	ResponseCode string    `json:"response_code"`
	IPAddress    string    `json:"ip_address"`
}

type Status

type Status interface {
	IsStatus()
}

type SuccessStatus

type SuccessStatus struct {
	IP *IP `json:"ip"`
}

func (SuccessStatus) IsStatus

func (SuccessStatus) IsStatus()

Jump to

Keyboard shortcuts

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