model

package
v0.0.0-...-e8e5fc3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Token string

Functions

This section is empty.

Types

type Group

type Group struct {
	GroupName    string
	Creator      string
	CreationDate time.Time
	Description  string
	Members      []User
}

type Message

type Message struct {
	Send_At   time.Time `json:"date" form:"date"`
	Sender    string    `json:"sender" form:"sender"`
	GroupName string    `json:"groupname" form:"groupname"`
	Content   string    `json:"content" form:"content"`
}

func (*Message) MarshalBinary

func (ms *Message) MarshalBinary() ([]byte, error)

func (*Message) UnmarshalBinary

func (ms *Message) UnmarshalBinary(data []byte) error

type User

type User struct {
	Username string `json:"username" form:"username"`
	Password string `json:"password" form:"password"`
}

Jump to

Keyboard shortcuts

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