Documentation
¶
Index ¶
- func LoadCodec(mimeType string) (enc FnMarshal, dec FnUnmarshal, ok bool)
- func MarshalWithMimeType(v interface{}, mimeType string) (raw []byte, err error)
- func MkString(format string, args ...interface{}) (str string, err error)
- func NewFluxWithDecoder(origin flux.Flux, dec func([]byte, interface{}) error) spi.Flux
- func NewFluxWithError(err error) spi.Flux
- func NewMonoWithDecoder(origin mono.Mono, decode FnUnmarshal) *extraMono
- func NewMonoWithError(err error) *mustErrorMono
- func NewRequester(socket rsocket.RSocket, dataMimeType string) *requester
- func RegisterCodec(mimeType string, encoder FnMarshal, decoder FnUnmarshal) error
- func SplitPath(data []byte, atEOF bool) (advance int, token []byte, err error)
- func UnmarshalWithMimeType(raw []byte, v interface{}, mimeType string) error
- type FnMarshal
- type FnUnmarshal
- type PathTrie
- type PathVariables
- type TrieNode
- type TrieNodeFlag
- type TrieNodeLeaf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalWithMimeType ¶
func NewFluxWithDecoder ¶
func NewFluxWithError ¶
func NewMonoWithDecoder ¶
func NewMonoWithDecoder(origin mono.Mono, decode FnUnmarshal) *extraMono
func NewMonoWithError ¶
func NewMonoWithError(err error) *mustErrorMono
func NewRequester ¶
func NewRequester(socket rsocket.RSocket, dataMimeType string) *requester
func RegisterCodec ¶
func RegisterCodec(mimeType string, encoder FnMarshal, decoder FnUnmarshal) error
func UnmarshalWithMimeType ¶
Types ¶
type FnUnmarshal ¶
type PathTrie ¶
type PathTrie struct {
// contains filtered or unexported fields
}
func NewPathTrie ¶
func NewPathTrie() *PathTrie
type PathVariables ¶
type PathVariables struct {
// contains filtered or unexported fields
}
func (*PathVariables) GetOrCompute ¶
func (p *PathVariables) GetOrCompute(name string, compute func() string) string
func (*PathVariables) GetOrDefault ¶
func (p *PathVariables) GetOrDefault(name string, defaultValue string) string
type TrieNodeFlag ¶
type TrieNodeFlag uint8
type TrieNodeLeaf ¶
type TrieNodeLeaf struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.