types

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2020 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeJSON = "application/json"
)
View Source
const (
	ContentTypeXML = "application/xml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

type JSON struct {
	// contains filtered or unexported fields
}

func (*JSON) ContentType

func (m *JSON) ContentType() string

func (*JSON) OverrideContentType

func (m *JSON) OverrideContentType(contentType string)

func (*JSON) Serializer

func (m *JSON) Serializer() restlib.Serializer

type XML

type XML struct {
	// contains filtered or unexported fields
}

func (*XML) ContentType

func (m *XML) ContentType() string

func (*XML) OverrideContentType

func (m *XML) OverrideContentType(contentType string)

func (*XML) Serializer

func (m *XML) Serializer() restlib.Serializer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL