models

package
v0.0.0-...-d095de2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func Connect

func Connect(path string) (err error)

Types

type Device

type Device struct {
}

type DeviceGroup

type DeviceGroup struct {
	Type    string
	Devices []Device
}

type FriendRequest

type FriendRequest struct {
	gorm.Model
	Name string
}

func (*FriendRequest) Save

func (friend_request *FriendRequest) Save() error

type SyncDevice

type SyncDevice struct {
	gorm.Model
	I2PDestination  string
	AdminThreadUUID string
}

type Thread

type Thread struct {
	gorm.Model
	UUID    string
	Members []DeviceGroup
}

type ThreadChatMessage

type ThreadChatMessage struct {
	gorm.Model
	ThreadUUID string
	Message    string
}

Jump to

Keyboard shortcuts

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