model

package
v0.0.0-...-b6ccf9b Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeError

type NodeError struct {
	Type      string   `json:"type"`
	Message   string   `json:"message"`
	Details   string   `json:"details"`
	ExtraInfo struct{} `json:"extra_info"`
}

type PromptRequest

type PromptRequest struct {
	ClientID  string `json:"client_id"`
	ExtraData struct {
		ExtraPngInfo struct {
			WorkFlow json.RawMessage `json:"work_flow"`
		} `json:"extra_pnginfo"`
	} `json:"extra_data"`
	Prompt json.RawMessage `json:"prompt"`
}

type PromptResponse

type PromptResponse struct {
	NodeErrors struct{}   `json:"node_errors"`
	Number     int        `json:"number"`
	PromptID   string     `json:"prompt_id"`
	Error      *NodeError `json:"error"`
}

type UpLoadImage

type UpLoadImage struct {
	Name      string `json:"name"`
	SubFolder string `json:"subfolder"`
	Type      string `json:"type"`
}

type User

type User struct {
	UserID   string
	UserName string
}

type UserList

type UserList struct {
	Storage string            `json:"storage"`
	M       map[string]string `json:"users"`
	Users   []*User           `json:"-"`
}

type Workflow

type Workflow struct {
	Path     string  `json:"path"`
	Size     int     `json:"size"`
	Modified float64 `json:"modified"`
}

type WorkflowDetail

type WorkflowDetail struct {
	Config interface{} `json:"config"`
	Extra  struct {
		Ds struct {
			Scale  float64   `json:"scale"`
			Offset []float64 `json:"offset"`
		} `json:"ds"`
		GroupNodes map[string]struct {
		} `json:"groupNodes"`
	} `json:"extra"`
	Groups     []interface{}   `json:"groups"`
	LastLinkID int             `json:"last_link_id"`
	LastNodeID int             `json:"last_node_id"`
	Links      [][]interface{} `json:"links"`
	Nodes      []struct {
		ID      int        `json:"id"`
		Type    string     `json:"type"`
		Flags   struct{}   `json:"flags"`
		Inputs  []struct{} `json:"inputs"`
		Mode    int        `json:"mode"`
		Order   int        `json:"order"`
		Outputs []struct {
			Name      string `json:"name"`
			Label     string `json:"label"`
			Links     []int  `json:"links"`
			SlotIndex int    `json:"slot_index"`
			Type      string `json:"type"`
		} `json:"outputs"`
		Pos           []float64              `json:"pos"`
		Properties    map[string]interface{} `json:"properties"`
		Size          []float64              `json:"size"`
		WidgetsValues []interface{}          `json:"widgets_values"`
	} `json:"nodes"`
	Version float64 `json:"version"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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