Documentation
¶
Index ¶
- type Database
- func (d *Database) CreateRoute(path string, functionId uuid.UUID) (*Route, error)
- func (d *Database) GetFunction(id uuid.UUID) (*Function, error)
- func (d *Database) GetFunctions() ([]*Function, error)
- func (d *Database) GetRoute(id uuid.UUID) (*Route, error)
- func (d *Database) GetRouteByPath(path string) (*Route, error)
- func (d *Database) GetRoutes() ([]*Route, error)
- func (d *Database) SaveFunction(f *Function) (*Function, error)
- func (d *Database) SaveRoute(f *Route) (*Route, error)
- type Function
- type FunctionEnvironment
- type Route
- type Scannable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) CreateRoute ¶
func (*Database) GetFunctions ¶
type Function ¶
type Function struct { Id string `json:"id"` Image string `json:"image"` Environment FunctionEnvironment `json:"environment"` }
type FunctionEnvironment ¶
func ParseEnvironment ¶
func ParseEnvironment(raw string) (FunctionEnvironment, error)
func (FunctionEnvironment) String ¶
func (env FunctionEnvironment) String() string
Click to show internal directories.
Click to hide internal directories.