entities

package
v0.0.0-...-481333c Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusError

type StatusError struct {
	Code   int
	Err    error
	Caller string
}

func ErrorBadRequest

func ErrorBadRequest(err error) StatusError

func ErrorInternal

func ErrorInternal(err error) StatusError

func ErrorNotFound

func ErrorNotFound(err error) StatusError

func (StatusError) Error

func (se StatusError) Error() string

func (StatusError) Status

func (se StatusError) Status() int

type Todo

type Todo struct {
	gorm.Model
	Name string `json:"name"`
}

func NewTodo

func NewTodo(name string) Todo

Jump to

Keyboard shortcuts

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