Documentation
¶
Index ¶
- Variables
- func CallAPI[T any](input CallInput, output *T) bool
- func FetchData(input *CallInput, output *Response) bool
- func LoadUser(encoded string, user *models.User) error
- func ReadFile(file app.Value) (data []byte, err error)
- func SaveUser(plain *string, user *models.User) error
- type CallInput
- type Response
- type Toast
- type ToastInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // those vars are used during the build --- linker (ld) bakes the values in AppVersion string AppPepper string VapidPublicKey string )
Functions ¶
Types ¶
type Response ¶ added in v0.42.0
type Response struct { Code int Message string `json:"message"` Timestamp int64 `json:"timestamp"` Data interface{} `json:"data"` }
standardized common response from API
type ToastInterface ¶ added in v0.41.1
type ToastInterface interface { Dispatch() func(interface{}) False() func(interface{}) }
Click to show internal directories.
Click to hide internal directories.