encoding

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: EPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HexPayloadEncoder

type HexPayloadEncoder struct {
}

func (HexPayloadEncoder) Encode

func (_ HexPayloadEncoder) Encode(payloadString string) (*bytes.Buffer, error)

func (HexPayloadEncoder) GetMimeType

func (_ HexPayloadEncoder) GetMimeType() string

type PayloadEncoder

type PayloadEncoder interface {
	Encode(payloadString string) (*bytes.Buffer, error)
	GetMimeType() string
}

func CreateEncoder

func CreateEncoder(contentType string) PayloadEncoder

type RawPayloadEncoder

type RawPayloadEncoder struct {
	MimeType string
}

func (RawPayloadEncoder) Encode

func (_ RawPayloadEncoder) Encode(payloadString string) (*bytes.Buffer, error)

func (RawPayloadEncoder) GetMimeType

func (e RawPayloadEncoder) GetMimeType() string

Jump to

Keyboard shortcuts

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