Documentation ¶
Index ¶
- type PromqlMarshaler
- func (m *PromqlMarshaler) ContentType() string
- func (m *PromqlMarshaler) Marshal(v interface{}) ([]byte, error)
- func (m *PromqlMarshaler) NewDecoder(r io.Reader) runtime.Decoder
- func (m *PromqlMarshaler) NewEncoder(w io.Writer) runtime.Encoder
- func (m *PromqlMarshaler) Unmarshal(data []byte, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromqlMarshaler ¶
type PromqlMarshaler struct {
// contains filtered or unexported fields
}
func NewPromqlMarshaler ¶
func NewPromqlMarshaler(fallback runtime.Marshaler) *PromqlMarshaler
func (*PromqlMarshaler) ContentType ¶
func (m *PromqlMarshaler) ContentType() string
func (*PromqlMarshaler) Marshal ¶
func (m *PromqlMarshaler) Marshal(v interface{}) ([]byte, error)
func (*PromqlMarshaler) NewDecoder ¶
func (m *PromqlMarshaler) NewDecoder(r io.Reader) runtime.Decoder
func (*PromqlMarshaler) NewEncoder ¶
func (m *PromqlMarshaler) NewEncoder(w io.Writer) runtime.Encoder
func (*PromqlMarshaler) Unmarshal ¶
func (m *PromqlMarshaler) Unmarshal(data []byte, v interface{}) error
The special marshaling for PromQL results is currently only implemented for encoding.
Click to show internal directories.
Click to hide internal directories.