domain

package
v0.0.0-...-97c5a11 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause, MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShoppingCartExtension

type ShoppingCartExtension struct {
	Creator     string `json:"creator,omitempty"`
	Name        string `json:"name,omitempty"`
	Version     string `json:"version,omitempty"`
	ExtensionID string `json:"extensionId,omitempty"`
}

ShoppingCartExtension represents the shopping extension present in the MetadataProvider

func NewShoppingCartExtension

func NewShoppingCartExtension(creator string, name string, version string) (*ShoppingCartExtension, error)

NewShoppingCartExtension creates a ShoppingCartExtension with the given creator, name and version

func NewShoppingCartExtensionWithExtensionID

func NewShoppingCartExtensionWithExtensionID(creator string, name string, version string, extensionID string) (*ShoppingCartExtension, error)

NewShoppingCartExtensionWithExtensionID creates a ShoppingCartExtension with the given creator, name, version and extension id

type UploadableFile

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

UploadableFile represents a file that can be uploaded.

func NewUploadableFile

func NewUploadableFile(fileName string, content io.Reader, contentType string) (*UploadableFile, error)

NewUploadableFile creates an uploadable file with the given file name, content and content type, and an unspecified content length.

func NewUploadableFileWithLength

func NewUploadableFileWithLength(fileName string, content io.Reader, contentType string, contentLength int64) (*UploadableFile, error)

NewUploadableFileWithLength creates an uploadable file with the given file name, content, content type and content length.

func (UploadableFile) GetContent

func (f UploadableFile) GetContent() io.Reader

GetContent returns a reader with the file's content.

func (UploadableFile) GetContentLength

func (f UploadableFile) GetContentLength() int64

GetContentLength returns the file's content length, or -1 if not known.

func (UploadableFile) GetContentType

func (f UploadableFile) GetContentType() string

GetContentType returns the file's content type.

func (UploadableFile) GetFileName

func (f UploadableFile) GetFileName() string

GetFileName returns the name of the file.

Jump to

Keyboard shortcuts

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