mongodb

package
v0.0.0-...-d4a31e9 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func InitClient

func InitClient(url, database string) error

func SaveMessage

func SaveMessage(msg *pb.Msg) error

Types

type Message

type Message struct {
	Content  string
	From     string
	To       string
	SendTime time.Time
	Seq      int64
	Uuid     string
}

func ListMessage

func ListMessage(userA, userB string, offset, limit int64, startTime, endTime time.Time) ([]Message, error)

func ListMessageBySeq

func ListMessageBySeq(from, to string, seq int64) ([]Message, error)

Jump to

Keyboard shortcuts

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