libanemic

package
v0.0.0-...-c735510 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definitions

type Definitions struct {
	Package         string
	Path            string
	PersistencePath string
	// contains filtered or unexported fields
}

func (*Definitions) GetByID

func (ds *Definitions) GetByID(id string) *ServiceDefinition

GetByID return the specified definition by its ID.

func (*Definitions) Register

func (ds *Definitions) Register(a *ServiceDefinition)

Register is used to register a new definition into the service.

func (*Definitions) Slice

func (ds *Definitions) Slice() []*ServiceDefinition

Slice return the definitions as a slice.

type ServiceDefinition

type ServiceDefinition struct {
	Name       string
	Aggregates []*libpersistence.AggregateDefinition
}

Definition is used to declare the information of a model, so it can generate its code.

func (*ServiceDefinition) Title

func (f *ServiceDefinition) Title() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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