Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("routes_module", fx.Provide(newModule))
Module
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct {
ID string
Tunnel string
Hostname string
DestinationProtocol string
DestinationIP string
DestinationPort uint32
Enabled bool
CreatedAt time.Time
UpdatedAt *time.Time
}
Route
type RouteCreate ¶
type RouteCreate struct {
Tunnel string
Hostname string
DestinationProtocol string
DestinationIP string
DestinationPort uint32
}
RouteCreate
type RoutePartial ¶
RoutePartial
type RouteUpdate ¶
type RouteUpdate struct {
ID string
Hostname string
DestinationProtocol string
DestinationIP string
DestinationPort uint32
Enabled bool
}
RouteUpdate
type Service ¶
type Service interface {
// Create
Create(context.Context, RouteCreate) (Route, error)
// Get
Get(context.Context, string) (Route, error)
// List
List(context.Context, RouteList) ([]RoutePartial, error)
// Update
Update(context.Context, RouteUpdate) (Route, error)
// Delete
Delete(context.Context, string) error
// Active
Active(context.Context, string) (Route, error)
}
Service
Click to show internal directories.
Click to hide internal directories.