entity

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	IdentityValue     configkit.Identity
	TypeNameValue     string
	MessageNamesValue configkit.EntityMessageNames
	HandlersValue     configkit.HandlerSet
}

Application is an implementation of config.Application.

func (*Application) AcceptVisitor

func (a *Application) AcceptVisitor(ctx context.Context, v configkit.Visitor) error

AcceptVisitor calls the appropriate method on v for this entity type.

func (*Application) Handlers

func (a *Application) Handlers() configkit.HandlerSet

Handlers returns the handlers within this application.

func (*Application) Identity

func (a *Application) Identity() configkit.Identity

Identity returns the identity of the entity.

func (*Application) MessageNames

func (a *Application) MessageNames() configkit.EntityMessageNames

MessageNames returns information about the messages used by the entity.

func (*Application) TypeName

func (a *Application) TypeName() string

TypeName returns the fully-qualified type name of the entity.

type Handler

type Handler struct {
	IdentityValue     configkit.Identity
	TypeNameValue     string
	MessageNamesValue configkit.EntityMessageNames
	HandlerTypeValue  configkit.HandlerType
}

Handler is an implementation of config.Handler.

func (*Handler) AcceptVisitor

func (h *Handler) AcceptVisitor(ctx context.Context, v configkit.Visitor) error

AcceptVisitor calls the appropriate method on v for this entity type.

func (*Handler) HandlerType

func (h *Handler) HandlerType() configkit.HandlerType

HandlerType returns the type of handler.

func (*Handler) Identity

func (h *Handler) Identity() configkit.Identity

Identity returns the identity of the entity.

func (*Handler) MessageNames

func (h *Handler) MessageNames() configkit.EntityMessageNames

MessageNames returns information about the messages used by the entity.

func (*Handler) TypeName

func (h *Handler) TypeName() string

TypeName returns the fully-qualified type name of the entity.

Jump to

Keyboard shortcuts

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