shared

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInputContentParam

type FileInputContentParam struct {
	// File content
	Content string `json:"content,required"`
	// contains filtered or unexported fields
}

The property Content is required.

func (FileInputContentParam) MarshalJSON

func (r FileInputContentParam) MarshalJSON() (data []byte, err error)

func (*FileInputContentParam) UnmarshalJSON

func (r *FileInputContentParam) UnmarshalJSON(data []byte) error

type FileInputURLParam

type FileInputURLParam struct {
	// URL to fetch file content from
	URL string `json:"url,required"`
	// contains filtered or unexported fields
}

The property URL is required.

func (FileInputURLParam) MarshalJSON

func (r FileInputURLParam) MarshalJSON() (data []byte, err error)

func (*FileInputURLParam) UnmarshalJSON

func (r *FileInputURLParam) UnmarshalJSON(data []byte) error

type FileInputUnionParam

type FileInputUnionParam struct {
	OfFileInputContent *FileInputContentParam `json:",omitzero,inline"`
	OfFileInputURL     *FileInputURLParam     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func FileInputParamOfFileInputContent

func FileInputParamOfFileInputContent(content string) FileInputUnionParam

func FileInputParamOfFileInputURL

func FileInputParamOfFileInputURL(url string) FileInputUnionParam

func (FileInputUnionParam) MarshalJSON

func (u FileInputUnionParam) MarshalJSON() ([]byte, error)

func (*FileInputUnionParam) UnmarshalJSON

func (u *FileInputUnionParam) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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