domain

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownEntityType = errors.New("domain: unknown entity type")
)

Functions

func LocalizedMessage

func LocalizedMessage(eventType proto.Event_Type, localizer locale.Localizer) *proto.LocalizedMessage

func NewAdminEvent

func NewAdminEvent(
	editor *domain.Editor,
	entityType domain.Event_EntityType,
	entityID string,
	eventType domain.Event_Type,
	event pb.Message,
	opts ...Option,
) (*domain.Event, error)

func NewEvent

func NewEvent(
	editor *domain.Editor,
	entityType domain.Event_EntityType,
	entityID string,
	eventType domain.Event_Type,
	event pb.Message,
	environmentNamespace string,
	opts ...Option,
) (*domain.Event, error)

func URL

func URL(entityType proto.Event_EntityType, url, envURLCode, id string) (string, error)

Types

type Option

type Option func(*domain.Options)

func WithComment

func WithComment(c string) Option

func WithNewVersion

func WithNewVersion(ver int32) Option

Jump to

Keyboard shortcuts

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