models

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ProcessWeb = "web"

Variables

This section is empty.

Functions

This section is empty.

Types

type AppEndpoint

type AppEndpoint struct {
	GUID     string `gorm:"primary_key"`
	AppGUID  string
	Endpoint string
}

type Route

type Route struct {
	PrivateInstanceID   string     `json:"private_instance_id"`
	Tags                Tags       `json:"tags"`
	ServerCertDomainSan string     `json:"server_cert_domain_san"`
	Address             string     `json:"address"`
	TLS                 bool       `json:"tls"`
	TTL                 int        `json:"ttl"`
	URL                 string     `json:"-"`
	URLParams           url.Values `json:"-"`
	MetricsPath         string     `json:"-"`
	Host                string     `json:"host"`
}

func (*Route) Equal added in v1.0.0

func (r *Route) Equal(r2 *Route) bool

type Routes

type Routes map[Uri][]*Route

func (Routes) Find

func (rts Routes) Find(appIdOrPathOrName string) []*Route

func (Routes) FindById

func (rts Routes) FindById(appId string) []*Route

func (Routes) FindByOrgSpaceName

func (rts Routes) FindByOrgSpaceName(org, space, name string) []*Route

func (Routes) FindByRouteName

func (rts Routes) FindByRouteName(routeName string) []*Route

func (Routes) RegisterRoute added in v1.0.0

func (rts Routes) RegisterRoute(uri Uri, route *Route)

func (Routes) String added in v1.0.0

func (rts Routes) String() string

func (Routes) UnregisterRoute added in v1.0.0

func (rts Routes) UnregisterRoute(uri Uri, route *Route)

type Tags

type Tags struct {
	ProcessType       string `json:"process_type"`
	ProcessInstanceID string `json:"process_instance_id"`
	Component         string `json:"component"`
	InstanceID        string `json:"instance_id"`
	SpaceName         string `json:"space_name"`
	OrganizationID    string `json:"organization_id"`
	ProcessID         string `json:"process_id"`
	OrganizationName  string `json:"organization_name"`
	SourceID          string `json:"source_id"`
	AppID             string `json:"app_id"`
	AppName           string `json:"app_name"`
	SpaceID           string `json:"space_id"`
}

type Uri added in v1.0.0

type Uri string

func (Uri) NextWildcard added in v1.0.0

func (u Uri) NextWildcard() (Uri, error)

func (Uri) RouteKey added in v1.0.0

func (u Uri) RouteKey() Uri

func (Uri) String added in v1.0.0

func (u Uri) String() string

func (Uri) ToLower added in v1.0.0

func (u Uri) ToLower() Uri

Jump to

Keyboard shortcuts

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