Documentation
¶
Index ¶
- Variables
- func Dir(useLocal bool, name string) http.FileSystem
- func FS(useLocal bool) http.FileSystem
- func FSByte(useLocal bool, name string) ([]byte, error)
- func FSMustByte(useLocal bool, name string) []byte
- func FSMustString(useLocal bool, name string) string
- func FSString(useLocal bool, name string) (string, error)
- func Serve(ctx xcontext.Context, port int, storage storage.Storage, ...) error
- type Log
- type Query
- type Result
- type RouteHandler
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Dir ¶
func Dir(useLocal bool, name string) http.FileSystem
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
func FS ¶
func FS(useLocal bool) http.FileSystem
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSByte ¶
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSMustByte ¶
FSMustByte is the same as FSByte, but panics if name is not present.
func FSMustString ¶
FSMustString is the string version of FSMustByte.
Types ¶
type Log ¶
type Log struct {
JobID uint64 `json:"job_id"`
LogData string `json:"log_data"`
Date time.Time `json:"date"`
LogLevel string `json:"log_level"`
}
func (*Log) ToStorageLog ¶
type Query ¶
type Query struct {
JobID *uint64 `form:"job_id"`
Text *string `form:"text"`
LogLevel *string `form:"log_level"`
StartDate *time.Time `form:"start_date" time_format:"2006-01-02T15:04:05.000Z07:00"`
EndDate *time.Time `form:"end_date" time_format:"2006-01-02T15:04:05.000Z07:00"`
PageSize *uint `form:"page_size"`
Page *uint `form:"page"`
}
func (*Query) ToStorageQuery ¶
toStorageQurey returns a storage Query and populates the required fields
type RouteHandler ¶
type RouteHandler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.