model

package
v0.0.0-...-ae47fb0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	ID        string    `json:"id"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

Base defines the basic fields for all models

type Message

type Message struct {
	Base

	PeerID string `json:"peer_id"`
	Data   string `json:"data"`
}

Message is a model to store messages

func NewMessage

func NewMessage() *Message

NewMessage returns instatiated Message struct

Jump to

Keyboard shortcuts

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