Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FnStatusCode ¶
type FnStatusCode int
const ( FnReady FnStatusCode = iota FnRunning FnUnknownState )
type Function ¶
type Function struct { ID uuid.UUID `json:"id" ,gorm:"primarykey;type:uuid;default:gen_random_uuid()"` Name string `json:"name"` Description string `json:"description"` Language string `json:"language"` Built bool `json:"built"` // The builder has built the image for this function BuildTimestamp int64 `json:"build_timestamp"` // The timestamp of the last build in Unix time }
type FunctionState ¶
type FunctionState struct { ID string `redis:"id"` Address string `redis:"address"` Port uint16 `redis:"port"` Status int `redis:"status"` LastUsed string `redis:"lastUsed"` }
This struct represents an instance of a function, especially it's address and status Each key in the redis is namespaced as it follows: <id of the function>:<id of the instance>
Click to show internal directories.
Click to hide internal directories.