interests

package
v0.0.0-...-97a2f1d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInternal = errors.New("internal failure")
View Source
var ErrInvalid = errors.New("invalid request")
View Source
var ErrLimitReached = errors.New("own interest limit reached")
View Source
var ErrNoAuth = errors.New("unauthenticated request")
View Source
var ErrNotFound = errors.New("interest not found")

Functions

This section is empty.

Types

type Service

type Service interface {
	Create(ctx context.Context, groupId, userId string, subData interest.Data) (id string, err error)
	Read(ctx context.Context, groupId, userId, subId string) (subData interest.Data, err error)
	Delete(ctx context.Context, groupId, userId, subId string) (err error)
	Search(ctx context.Context, groupId, userId string, q interest.Query, cursor condition.Cursor) (page []*apiGrpc.Interest, err error)
}

func NewLogging

func NewLogging(svc Service, log *slog.Logger) Service

func NewService

func NewService(clientHttp *http.Client, url, token string) Service

Jump to

Keyboard shortcuts

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