model

package
v0.0.0-...-3010e5a Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequestResponse

type BadRequestResponse struct{}

type CreateRecordRequest

type CreateRecordRequest struct {
	User    string `json:"user" xml:"user" form:"user"`
	MsgType string `json:"msg_type" xml:"msg_type" form:"msg_type"`
}

type CreateRecordResponse

type CreateRecordResponse struct {
	ID        int64     `json:"id" xml:"id"`
	User      string    `json:"user" xml:"user"`
	CreatedAt time.Time `json:"created_at" xml:"created_at"`
	MsgType   string    `json:"msg_type" xml:"msg_type"`
}

type GetAllRecordsResponse

type GetAllRecordsResponse struct {
	RecordsStored   int64                    `json:"records_stored"`
	UsersRegistered int64                    `json:"users_registered"`
	Records         map[string][]UsersRecord `json:"users"`
}

type GetRecordResponse

type GetRecordResponse struct {
	ID        int64     `json:"id" xml:"id"`
	User      string    `json:"user" xml:"user"`
	CreatedAt time.Time `json:"created_at" xml:"created_at"`
	MsgType   string    `json:"msg_type" xml:"msg_type"`
}

type GetUserRecordsResponse

type GetUserRecordsResponse struct {
	Count   int64         `json:"records_stored"`
	User    string        `json:"user"`
	Records []UsersRecord `json:"records,omitempty"`
}

type Record

type Record struct {
	ID        int64
	User      string
	MsgType   string
	CreatedAt time.Time
}

func (*Record) String

func (m *Record) String() string

type UsersRecord

type UsersRecord struct {
	ID        int64     `json:"id"`
	MsgType   string    `json:"msg_type"`
	CreatedAt time.Time `json:"created_at"`
}

func (*UsersRecord) String

func (m *UsersRecord) String() string

Jump to

Keyboard shortcuts

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