entity

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalid = errors.New("invalid")
)

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	ProxyID  string `db:"proxy_id" json:"-"`
	Endpoint string `db:"endpoint" json:"endpoint"`
	Activate bool   `db:"activate" json:"-"`
}

func (Proxy) MarshalZerologObject

func (p Proxy) MarshalZerologObject(e *zerolog.Event)

func (Proxy) Validate

func (p Proxy) Validate() error

type Route

type Route struct {
	ProxyID     string `db:"proxy_id" json:"proxy_id"`
	EnvID       string `db:"env_id" json:"env_id"`
	Destination string `db:"destination" json:"destination"`
}

func (Route) MarshalZerologObject

func (r Route) MarshalZerologObject(e *zerolog.Event)

func (Route) Validate

func (r Route) Validate() error

Jump to

Keyboard shortcuts

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