models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hubsync

type Hubsync struct {
	Id           string   `json:"id" bson:"_id"`
	Settings     Settings `json:"settings" bson:"settings"`
	LastSynced   int64    `json:"last_synced" bson:"last_synced"`
	SyncProgress float64  `json:"sync_progress" bson:"sync_progress"`
}

type Settings added in v0.0.23

type Settings struct {
	Enabled      bool   `bson:"enabled" json:"enabled" mapstructure:"enabled"`
	ServerHost   string `bson:"server_host" json:"server_host" mapstructure:"server_host"`
	ServerPort   int    `bson:"server_port" json:"server_port" mapstructure:"server_port"`
	Token        string `bson:"token" json:"token" mapstructure:"token"`
	SyncInterval int64  `json:"sync_interval" bson:"sync_interval"`
	BufferSize   int64  `json:"buffer_size" bson:"buffer_size"`
}

Jump to

Keyboard shortcuts

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