mime

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive []Entry

func NewArchive

func NewArchive(content string) (Archive, error)

func (Archive) Serialize

func (ma Archive) Serialize() (string, error)

Serialize returns a base64 encoded serialized MIME multi-part archive

type ContentType

type ContentType string
const (
	ContentTypeShellScript ContentType = `text/x-shellscript; charset="us-ascii"`
	ContentTypeNodeConfig  ContentType = "application/" + admapi.GroupName
	ContentTypeMultipart   ContentType = `multipart/mixed; boundary="` + boundary + `"`
)

type Entry

type Entry struct {
	ContentType ContentType
	Content     string
}

Jump to

Keyboard shortcuts

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