base_service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLanguageNotFound = errors.New("language not found")
)

Functions

This section is empty.

Types

type LanguageService

type LanguageService interface {
	GetByCode(ctx context.Context, languageCode string) (*base_models.Language, error)
	ListSupportedLanguageCodes(ctx context.Context) []string
}

type UserService

type UserService interface {
	// ExtractUserByGUID should extract the user's base model from the local data source using the user's unique global
	// ID (for example, the eosn_id or uuid).
	// This method might panic if no user is found, create a new one or return the response.ApiError in case
	// a specific error should be returned when trying to extract that user from the authentication middleware.
	ExtractUserByGUID(ctx context.Context, guid string) (*base_models.User, *response.ApiError)
}

Jump to

Keyboard shortcuts

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