model

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

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

Go to latest
Published: May 1, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conversation

type Conversation struct {
	model.Conversation

	Participants []*User    `json:"participants"`
	Messages     []*Message `json:"messages"`
}

func (*Conversation) Init

func (c *Conversation) Init() error

Init initializes uninitialized fields

type Message

type Message struct {
	model.Message

	Sender       []*User         `json:"sender"`
	Conversation []*Conversation `json:"conversation"`
}

func (*Message) Init

func (m *Message) Init() error

Init initializes uninitialized fields

type Session

type Session struct {
	model.Session

	User *User `json:"user"`
}

type User

type User struct {
	model.User

	Sessions      []*Session      `json:"sessions"`
	Conversations []*Conversation `json:"conversations"`
}

func (*User) Init

func (u *User) Init() error

Init initializes uninitialized fields

Jump to

Keyboard shortcuts

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