model

package
v0.0.0-...-bf83fb3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyncQueueStatusPending  = "pending"
	SyncQueueStatusFailed   = "failed"
	SyncQueueStatusComplete = "complete"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncQueue

type SyncQueue struct {
	ID        int
	ItemID    int
	Item      *[]byte
	ItemHash  string
	ItemType  string
	Status    string
	Service   string
	Retries   int
	ForDelete bool
	CreatedOn string
	UpdatedOn string
}

SyncQueue model

func (*SyncQueue) MarshalJSON

func (sq *SyncQueue) MarshalJSON() ([]byte, error)

MarshalJSON If we add the item, do not forget to custom marshal JSON for the item

Jump to

Keyboard shortcuts

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