Documentation
¶
Index ¶
- Variables
- func GetLogger(ctx context.Context) (*slog.Logger, bool)
- func MustGetLogger(ctx context.Context) *slog.Logger
- func NewServer(handler Handler) http.Handler
- func Ptr[T any](v T) *T
- func SetLogger(ctx context.Context, logger *slog.Logger) context.Context
- type DateTime
- type Fault
- type Handler
- type Member
- type Param
- type Params
- type Request
- type Response
- type Server
- type Value
- type ValueKind
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // -32000 to -32099: Reserved for implementation-defined server-errors. FaultParseError = &Response{Fault: NewFault(-32700, "parse error")} FaultInvalidRequest = &Response{Fault: NewFault(-32600, "invalid request")} FaultMethodNotFound = &Response{Fault: NewFault(-32601, "method not found")} FaultInvalidParams = &Response{Fault: NewFault(-32602, "invalid params")} FaultInternalError = &Response{Fault: NewFault(-32603, "internal error")} )
Functions ¶
Types ¶
type Value ¶
type Value struct {
Kind ValueKind `xml:"-"`
Array *[]Value `xml:"array>data>value"`
Struct *[]Member `xml:"struct>member"`
String *string `xml:"string"`
Int *int32 `xml:"int"`
Int4 *int32 `xml:"i4"`
Double *float64 `xml:"double"`
Boolean *bool `xml:"boolean"`
DateTime *DateTime `xml:"dateTime.iso8601"`
Base64 *string `xml:"base64"`
Raw *string `xml:",innerxml"`
}
func NewBoolean ¶
func NewDateTime ¶
Click to show internal directories.
Click to hide internal directories.