routemodels

package
v0.0.0-...-37eefcc Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRouteFromBytes

func GetRouteFromBytes(encodedData []byte, r *Route) error

Types

type Route

type Route struct {
	ID         string    `json:"id,omitempty" bson:"id,omitempty" msgpack:",omitempty"`
	Type       RouteType `json:"type,omitempty" bson:"type,omitempty" msgpack:",omitempty"`
	WebhookURL string    `json:"webhook_url,omitempty" bson:"webhook_url,omitempty" msgpack:",omitempty"`
}

func (Route) ToBytes

func (r Route) ToBytes() ([]byte, error)

func (Route) Valid

func (r Route) Valid() error

type RouteType

type RouteType string
const (
	// Route via REST API webhook
	REST RouteType = "REST"
)

Jump to

Keyboard shortcuts

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