Documentation
¶
Index ¶
- func SendRequest(client *http.Client, URL string, method string, data []byte) *contracts.Response
- type Object
- func (obj *Object) Add(format *f.Format, data string) error
- func (obj *Object) ChangeDetected() bool
- func (obj *Object) Diff(definition string) bool
- func (obj *Object) Exists() bool
- func (obj *Object) Find(format *f.Format) error
- func (obj *Object) FindMany(format *f.Format) (map[string]*Object, error)
- func (obj *Object) GetDefinition() map[string]any
- func (obj *Object) GetDefinitionByte() []byte
- func (obj *Object) GetDefinitionString() string
- func (obj *Object) Remove(format *f.Format) (bool, error)
- func (obj *Object) Update(format *f.Format, data string) error
- type ObjectInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Object ¶
type Object struct {
Byte []byte
String string
Definition map[string]interface{}
Changelog diff.Changelog
Raw bool
Owner string
Created time.Time
Updated time.Time
User *authentication.User
// contains filtered or unexported fields
}
func (*Object) ChangeDetected ¶
func (*Object) GetDefinition ¶
func (*Object) GetDefinitionByte ¶
func (*Object) GetDefinitionString ¶
type ObjectInterface ¶ added in v0.0.2
type ObjectInterface interface {
GetDefinitionString() string
GetDefinition() map[string]any
GetDefinitionByte() []byte
Add(format *f.Format, data string) error
Update(format *f.Format, data string) error
Find(format *f.Format) error
Remove(format *f.Format) (bool, error)
Diff(definition string) bool
Exists() bool
ChangeDetected() bool
}
Click to show internal directories.
Click to hide internal directories.