Versions in this module Expand all Collapse all v1 v1.0.2 Oct 2, 2024 Changes in this version + type ApiHook interface + RecordFunc func(record RecordData) error + type Config struct + IsDebug bool + MagicUrl string + type Context struct + ApiHook ApiHook + Config Config + Logger *zap.Logger + func NewContext(config Config, logger *zap.Logger, apiHook ApiHook) *Context + type MagicSdk struct + func NewMagicSdk(ctx *Context) *MagicSdk + func (s *MagicSdk) NewMagicRequest(uri string, body any, obj any) (err error) + type RecordData struct + Body string + Duration int64 + Error string + Method string + Response string + Status int + Url string