models

package
v0.0.0-...-5012d17 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

models contains models that relate to client-only concepts, like objects we keep in the internal storage. For models coming from the menshen API Spec, see ../../models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	ID       int    `storm:"increment"`
	Name     string `storm:"index,unique"`
	Location string
	Type     string
	// Raw is the raw JSON serialization of the bridge. We could also use the menshen model as a nested struct.
	Raw       string    `storm:"unique"`
	CreatedAt time.Time `storm:"index"`
	LastUsed  time.Time
}

Bridge is a private bridge.

type Introducer

type Introducer struct {
	ID   int    `storm:"increment"`
	Name string `storm:"index,unique"`
	// URL is the canonical URL. It should be stored after validation and writing in the canonical order, since
	// we will check for uniqueness.
	URL       string    `storm:"unique"`
	CreatedAt time.Time `storm:"index"`
	LastUsed  time.Time
}

Introducer keeps metadata about introducers that the user has added to the Bitmask application. Introducers are expected to be transmitted off-band.

Jump to

Keyboard shortcuts

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