plugin_model

package
v1.4.3-beta Latest Latest
Warning

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

Go to latest
Published: Jan 20, 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 ConfigType

type ConfigType map[string]any

type Define

type Define struct {
	Extend string
	Name   string
	Cname  string
	Desc   string
	Kind   Kind
	Status Status
	Config ConfigType
	Render Render
}

type Kind

type Kind int
const (
	InnerKind Kind = iota
	OpenKind
)

func ParseKind

func ParseKind(string2 string) Kind

func (*Kind) MarshalJSON

func (k *Kind) MarshalJSON() ([]byte, error)

func (*Kind) Scan

func (k *Kind) Scan(src any) error

func (*Kind) String

func (k *Kind) String() string

func (*Kind) UnmarshalJSON

func (k *Kind) UnmarshalJSON(bytes []byte) error

func (*Kind) Value

func (k *Kind) Value() (driver.Value, error)

type PluginConfig

type PluginConfig struct {
	Name   string     `json:"name"`
	Status Status     `json:"status"`
	Config ConfigType `json:"config,omitempty"`
}

type Render

type Render map[string]any

type Status

type Status int
const (
	Enable Status = iota
	Global
	Disable
)

func ParseStatus

func ParseStatus(string2 string) Status

func (*Status) MarshalJSON

func (s *Status) MarshalJSON() ([]byte, error)

func (*Status) Scan

func (s *Status) Scan(src any) error

func (*Status) String

func (s *Status) String() string

func (*Status) UnmarshalJSON

func (s *Status) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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