Documentation
¶
Index ¶
- Variables
- func MapNativeTable(t *NativeTable) (interface{}, bool)
- func ParseToTable(k, v NativeValue, acc map[string]interface{})
- func ToError(e error, source *SourceMap) error
- type Binder
- type BinderWrapper
- type Config
- type Context
- type ErrInternal
- type ErrInternalHTTP
- type ErrInternalHTTPWithContentType
- type ErrUnknownSource
- type ErrWrongChecksum
- type ErrWrongChecksumType
- type Handler
- type HttpResponse
- type List
- type NativeBool
- type NativeNumber
- type NativeString
- type NativeTable
- type NativeUserData
- type NativeValue
- type SourceLoader
- type SourceMap
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoExtraConfig = errors.New("no extra config") ErrWrongExtraConfig = errors.New("wrong extra config") )
Functions ¶
func MapNativeTable ¶
func MapNativeTable(t *NativeTable) (interface{}, bool)
func ParseToTable ¶
func ParseToTable(k, v NativeValue, acc map[string]interface{})
Types ¶
type BinderWrapper ¶
type BinderWrapper struct {
// contains filtered or unexported fields
}
func NewBinderWrapper ¶
func NewBinderWrapper(binderOptions binder.Options) BinderWrapper
func (BinderWrapper) GetBinder ¶
func (b BinderWrapper) GetBinder() *binder.Binder
func (BinderWrapper) WithCode ¶
func (b BinderWrapper) WithCode(key, src string) error
func (BinderWrapper) WithConfig ¶
func (b BinderWrapper) WithConfig(cfg *Config) error
type Config ¶
type ErrInternal ¶
type ErrInternal string
func (ErrInternal) Error ¶
func (e ErrInternal) Error() string
type ErrInternalHTTP ¶
type ErrInternalHTTP struct {
// contains filtered or unexported fields
}
func (ErrInternalHTTP) Error ¶
func (e ErrInternalHTTP) Error() string
func (ErrInternalHTTP) StatusCode ¶
func (e ErrInternalHTTP) StatusCode() int
type ErrInternalHTTPWithContentType ¶
type ErrInternalHTTPWithContentType struct {
ErrInternalHTTP
// contains filtered or unexported fields
}
func (ErrInternalHTTPWithContentType) Encoding ¶
func (e ErrInternalHTTPWithContentType) Encoding() string
type ErrUnknownSource ¶
type ErrUnknownSource string
func (ErrUnknownSource) Error ¶
func (e ErrUnknownSource) Error() string
type ErrWrongChecksum ¶
type ErrWrongChecksum struct {
Source, Actual, Expected string
}
func (ErrWrongChecksum) Error ¶
func (e ErrWrongChecksum) Error() string
type ErrWrongChecksumType ¶
type ErrWrongChecksumType string
func (ErrWrongChecksumType) Error ¶
func (e ErrWrongChecksumType) Error() string
type HttpResponse ¶
type HttpResponse struct {
Once *sync.Once
R *http.Response
// contains filtered or unexported fields
}
func (*HttpResponse) Body ¶
func (h *HttpResponse) Body() string
func (*HttpResponse) Close ¶
func (h *HttpResponse) Close()
func (*HttpResponse) Header ¶
func (h *HttpResponse) Header(k string) string
func (*HttpResponse) Headers ¶
func (h *HttpResponse) Headers(k string) []string
type NativeBool ¶
type NativeNumber ¶
type NativeString ¶
type NativeTable ¶
type NativeUserData ¶
type NativeValue ¶
type SourceLoader ¶
type SourceMap ¶
func NewSourceMap ¶
func NewSourceMap() SourceMap
func (*SourceMap) AffectedSource ¶
Click to show internal directories.
Click to hide internal directories.