Documentation ¶
Overview ¶
Package api implements Pandora API
Terms Of Service:
there are no TOS at this moment, use at your own risk we take no responsibility
Schemes: http, https Host: localhost BasePath: /api Version: 0.0.1 License: MIT http://opensource.org/licenses/MIT Contact: Sergey Todyshev <stodyshev@gmail.com> http://tsvbits.com Consumes: - application/json - application/graphql Produces: - application/json Security: - api_token: SecurityDefinitions: api_token: type: JWT name: jwt_token in: Authorization
swagger:meta
Index ¶
- func GetLogEntry(r *http.Request) logrus.FieldLogger
- func LogEntrySetField(r *http.Request, key string, value interface{})
- func LogEntrySetFields(r *http.Request, fields map[string]interface{})
- func NewHandler() http.Handler
- func NewStructuredLogger(logger *logrus.Logger) func(next http.Handler) http.Handler
- type StructuredLogger
- type StructuredLoggerEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogEntry ¶
func GetLogEntry(r *http.Request) logrus.FieldLogger
func LogEntrySetField ¶
func LogEntrySetFields ¶
Types ¶
type StructuredLogger ¶
func (*StructuredLogger) NewLogEntry ¶
func (l *StructuredLogger) NewLogEntry(r *http.Request) middleware.LogEntry
type StructuredLoggerEntry ¶
type StructuredLoggerEntry struct {
Logger logrus.FieldLogger
}
func (*StructuredLoggerEntry) Panic ¶
func (l *StructuredLoggerEntry) Panic(v interface{}, stack []byte)
Click to show internal directories.
Click to hide internal directories.