service

package
v0.0.0-...-956d038 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RpcAddr string
}

type Messages

type Messages struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *Messages

func (*Messages) Close

func (s *Messages) Close()

func (*Messages) ReadUserMessages

func (s *Messages) ReadUserMessages(
	ctx context.Context,
	userId usermodel.UserId,
	limit int32,
	offset int32,
	ascending bool,
) (
	*model.MessagesList,
	error,
)

func (*Messages) SaveMessage

func (s *Messages) SaveMessage(ctx context.Context, msg *model.Message) (
	*model.Message,
	error,
)

Jump to

Keyboard shortcuts

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