models

package
v0.0.0-...-c2a27a2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Error Codes
	ErrRequiredParamCode = iota + 1000
	ErrProcessingRequestCode
	ErrNotFoundCode
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    int
	Message string
}

Error represents an error code and message

func (Error) Error

func (err Error) Error() string

Error returns the error as a formatted string

type Replay

type Replay struct {
	Uri       string `json:"uri"`
	Title     string `json:"title"`
	Sha       string `json:"sha"`
	Timestamp string `json:"timestamp"`
	Content   string `json:"content"`
}

Replay represents a WARC replay

Jump to

Keyboard shortcuts

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