biz

package
v0.0.0-...-8ddde9e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is biz providers.

Functions

This section is empty.

Types

type GroupResult

type GroupResult struct {
	GroupMember string
	Err         error
	Seq         int64
}

type MessageUseCase

type MessageUseCase interface {
	Send(ctx context.Context, from, to, jsonMsg string) (seq int64, err error)
	SendGroup(ctx context.Context, group string, groupMember []string, jsonMsg string) (result []*GroupResult, err error)
	GetSyncMessage(ctx context.Context, member string, lastRead int64, limit int) ([]data.Message, int64, error)

	GetSingleHistoryMessage(ctx context.Context, from, to string, lastRead int64, numOfHistory int32) ([]data.Message, error)
	GetGroupHistoryMessage(ctx context.Context, group string, lastRead int64, numOfHistory int32) ([]data.Message, error)
}

func NewMessageUseCase

func NewMessageUseCase(client *data.Data, config *conf.Data, cache data.SequenceCache, logger log.Logger) MessageUseCase

NewMessageUseCase new a MessageUseCase

Jump to

Keyboard shortcuts

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