Documentation ¶
Index ¶
- Constants
- Variables
- func AllApi_manager(project, state, search string, page, rows int, _select string) (e.List, error)
- func ApiManager(next http.Handler) http.Handler
- func DefineApimanager() error
- func DeleteApi_manager(id string) (e.Item, error)
- func ExecutePath(endpoint *Endpoint, w http.ResponseWriter, r *http.Request)
- func GetApi_managerById(id string) (e.Item, error)
- func GetReqID(ctx context.Context) string
- func RequestLogger(f LogFormatter) func(next http.Handler) http.Handler
- func StateApi_manager(id, state string) (e.Item, error)
- func UpSertApi_manager(project, stage, method, path, id 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 AllApi_manager ¶
func DefineApimanager ¶
func DefineApimanager() error
func ExecutePath ¶
func ExecutePath(endpoint *Endpoint, w http.ResponseWriter, r *http.Request)
func GetApi_managerById ¶
* * Handler for CRUD data
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.