model

package
v2.3.99 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Export     = "export"
	Import     = "import"
	MassUpdate = "mass-update"
	MassDelete = "mass-delete"
)

Variables

Functions

This section is empty.

Types

type Error

type Error struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Message

type Message struct {
	Mu       sync.Mutex `json:"-"`
	Count    int        `json:"count"`
	Success  []string   `json:"success,omitempty"`
	Errors   []Error    `json:"errors,omitempty"`
	Error    *string    `json:"error,omitempty"`
	FileName *string    `json:"file_name,omitempty"`
}

func NewMessage

func NewMessage() *Message

func (*Message) AddError

func (m *Message) AddError(key string, value string)

func (*Message) AddSuccess

func (m *Message) AddSuccess(idx string)

func (*Message) GetCount

func (m *Message) GetCount() int

func (*Message) GetError

func (m *Message) GetError() *string

func (*Message) GetErrors

func (m *Message) GetErrors() []Error

func (*Message) GetFileName added in v2.3.99

func (m *Message) GetFileName() *string

func (*Message) GetSuccesses

func (m *Message) GetSuccesses() []string

func (*Message) SetCount

func (m *Message) SetCount(value int)

func (*Message) SetError

func (m *Message) SetError(err string)

func (*Message) SetFileName added in v2.3.99

func (m *Message) SetFileName(value string)

Jump to

Keyboard shortcuts

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