openai

package
v0.0.0-...-2ddaa73 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultFormBuilder

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

func NewFormBuilder

func NewFormBuilder(body io.Writer) *DefaultFormBuilder

func (*DefaultFormBuilder) Close

func (fb *DefaultFormBuilder) Close() error

func (*DefaultFormBuilder) CreateFormFile

func (fb *DefaultFormBuilder) CreateFormFile(fieldname string, file *os.File) error

func (*DefaultFormBuilder) FormDataContentType

func (fb *DefaultFormBuilder) FormDataContentType() string

func (*DefaultFormBuilder) WriteField

func (fb *DefaultFormBuilder) WriteField(fieldname, value string) error

type FormBuilder

type FormBuilder interface {
	CreateFormFile(fieldname string, file *os.File) error
	WriteField(fieldname, value string) error
	Close() error
	FormDataContentType() string
}

type JSONMarshaller

type JSONMarshaller struct{}

func (*JSONMarshaller) Marshal

func (jm *JSONMarshaller) Marshal(value any) ([]byte, error)

type JSONUnmarshaler

type JSONUnmarshaler struct{}

func (*JSONUnmarshaler) Unmarshal

func (jm *JSONUnmarshaler) Unmarshal(data []byte, v any) error

type Marshaller

type Marshaller interface {
	Marshal(value any) ([]byte, error)
}

type Unmarshaler

type Unmarshaler interface {
	Unmarshal(data []byte, v any) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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