Documentation ¶
Index ¶
- Constants
- Variables
- func AllApimanager(package_name, state, search string, page, rows int, _select string) (e.List, error)
- func ApiManager(next http.Handler) http.Handler
- func DefineApimanager() error
- func DeleteApimanager(id string) (e.Item, error)
- func ExecutePath(endpoint *Endpoint, w http.ResponseWriter, r *http.Request)
- func GetApimanagerById(id string) (e.Item, error)
- func GetApimanagerByPath(method, path string) (e.Item, error)
- func GetReqID(ctx context.Context) string
- func RequestLogger(f LogFormatter) func(next http.Handler) http.Handler
- func StateApimanager(id, state string) (e.Item, error)
- func UpSertApimanager(package_name, kind, method, path string, data e.Json) (e.Item, error)
- type DefaultLogFormatter
- type Endpoint
- type LogEntry
- type LogFormatter
- type LoggerInterface
Constants ¶
View Source
const ( Ldate = 1 << iota // the date in the local time zone: 2009/01/23 Ltime // the time in the local time zone: 01:23:23 LstdFlags = Ldate | Ltime // initial values for the standard logger )
View Source
const RequestIDKey ctxKeyRequestID = 0
Variables ¶
View Source
var Apibus *linq.Model
View Source
var DefaultLogger func(next http.Handler) http.Handler
View Source
var SchemaBus *linq.Schema
Functions ¶
func AllApimanager ¶ added in v0.0.68
func DefineApimanager ¶
func DefineApimanager() error
func ExecutePath ¶
func ExecutePath(endpoint *Endpoint, w http.ResponseWriter, r *http.Request)
func GetApimanagerById ¶ added in v0.0.68
* * Handler for CRUD data
func GetApimanagerByPath ¶ added in v0.0.68
func RequestLogger ¶
func RequestLogger(f LogFormatter) func(next http.Handler) http.Handler
Types ¶
type DefaultLogFormatter ¶
type DefaultLogFormatter struct { Logger LoggerInterface NoColor bool }
func (*DefaultLogFormatter) NewLogEntry ¶
func (l *DefaultLogFormatter) NewLogEntry(r *http.Request) LogEntry
type Endpoint ¶
type LogFormatter ¶
type LoggerInterface ¶
type LoggerInterface interface {
Print(v ...interface{})
}
Click to show internal directories.
Click to hide internal directories.