dao

package
v0.86.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

Dao dao.

func New

func New(c config.Config, plugin plugin.ChatPlugin) (dao *Dao)

New new a dao and return.

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) GetMutableChat

func (d *Dao) GetMutableChat(ctx context.Context, chatId int64, id ...int64) (chat *chatpb.MutableChat, err error)

func (*Dao) MakeImmutableChatByDO

func (d *Dao) MakeImmutableChatByDO(ctx context.Context, chatsDO *dataobject.ChatsDO) (chat *chatpb.ImmutableChat)

func (*Dao) MakeImmutableChatParticipant

func (d *Dao) MakeImmutableChatParticipant(chatParticipantsDO *dataobject.ChatParticipantsDO) (participant *chatpb.ImmutableChatParticipant)

func (*Dao) Ping

func (d *Dao) Ping(ctx context.Context) (err error)

Ping ping the resource.

type Mysql

func (*Mysql) Close

func (d *Mysql) Close() error

func (*Mysql) Ping

func (d *Mysql) Ping(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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