Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewMessageUseCase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type GroupResult ¶
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
Click to show internal directories.
Click to hide internal directories.