enum

package
v0.0.2-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const StatusInvalid = -2

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaType

type MetaType int32
const (
	Self MetaType = iota
	Storage
	Broker
)

func (MetaType) IsValid

func (m MetaType) IsValid() bool

func (MetaType) MarshalJSON

func (m MetaType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for MetaType

func (MetaType) ShootEnum

func (m MetaType) ShootEnum()

ShootEnum exists solely to fulfill the EnumShooter interface contract

func (MetaType) String

func (m MetaType) String() string

String returns the string value of type MetaType

func (MetaType) StringMap

func (m MetaType) StringMap() map[MetaType]string

func (MetaType) Strings

func (m MetaType) Strings() []string

func (*MetaType) UnmarshalJSON

func (m *MetaType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for MetaType

func (MetaType) ValueMap

func (m MetaType) ValueMap() map[string]MetaType

func (MetaType) Values

func (m MetaType) Values() []MetaType

type PluginType

type PluginType int32
const (
	None PluginType = iota
	MySQL
	GORM
	RabbitMQ
	Kafka
)

func (PluginType) IsValid

func (p PluginType) IsValid() bool

func (PluginType) MarshalJSON

func (p PluginType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PluginType

func (PluginType) ShootEnum

func (p PluginType) ShootEnum()

ShootEnum exists solely to fulfill the EnumShooter interface contract

func (PluginType) String

func (p PluginType) String() string

String returns the string value of type PluginType

func (PluginType) StringMap

func (p PluginType) StringMap() map[PluginType]string

func (PluginType) Strings

func (p PluginType) Strings() []string

func (*PluginType) UnmarshalJSON

func (p *PluginType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PluginType

func (PluginType) ValueMap

func (p PluginType) ValueMap() map[string]PluginType

func (PluginType) Values

func (p PluginType) Values() []PluginType

type Status

type Status int32
const (
	StatusFailed  Status = -1
	StatusPending Status = iota //1
	StatusProcessing
	StatusSucceeded
)

func (Status) IsValid

func (s Status) IsValid() bool

func (Status) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for Status

func (*Status) Scan

func (s *Status) Scan(value interface{}) error

Scan implements the driver.Scanner interface for Status

func (Status) ShootEnum

func (s Status) ShootEnum()

ShootEnum exists solely to fulfill the EnumShooter interface contract

func (Status) String

func (s Status) String() string

String returns the string value of type Status

func (Status) StringMap

func (s Status) StringMap() map[Status]string

func (Status) Strings

func (s Status) Strings() []string

func (*Status) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for Status

func (Status) Value

func (s Status) Value() (driver.Value, error)

Value implements the driver.Valuer interface for Status

func (Status) ValueMap

func (s Status) ValueMap() map[string]Status

func (Status) Values

func (s Status) Values() []Status

Jump to

Keyboard shortcuts

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