model

package
v0.0.0-...-92aba83 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorStatusOK             = 0
	ErrorStatusAPIUnavailable = 1
	ErrorStatusPostIndexError = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	NodeID   string `json:"node_id"   bson:"node_id,omitempty"`
	IsPosted bool   `json:"is_posted" bson:"is_posted,omitempty"`
	Cuid     string `json:"cuid"      bson:"cuid,omitempty"`
	Oid      string `json:"oid"       bson:"oid,omitempty"`
}

type Update

type Update struct {
	Schema       string `json:"schema"        bson:"schema,omitempty"`
	LastUpdated  int64  `json:"last_updated"  bson:"last_updated,omitempty"`
	HasError     bool   `json:"has_error"     bson:"has_error,omitempty"`
	APIEntry     string `json:"api_entry"     bson:"api_entry,omitempty"`
	ErrorMessage string `json:"error_message" bson:"error_message,omitempty"`
	ErrorStatus  int    `json:"error_status"  bson:"error_status,omitempty"`
	Version      *int32 `json:"-"             bson:"__v,omitempty"`
}

Jump to

Keyboard shortcuts

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