finance

package
v0.0.0-...-f40d0ba Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateExpenseCommand eventhorizon.CommandType = "CreateExpense"
	DeleteExpenseCommand eventhorizon.CommandType = "DeleteExpense"
	UpdateExpenseCommand eventhorizon.CommandType = "UpdateExpense"
)
View Source
const (
	CreateExpensePurposeCommand eventhorizon.CommandType = "CreateExpensePurpose"
	DeleteExpensePurposeCommand eventhorizon.CommandType = "DeleteExpensePurpose"
	UpdateExpensePurposeCommand eventhorizon.CommandType = "UpdateExpensePurpose"
)
View Source
const (
	CreateFeeCommand eventhorizon.CommandType = "CreateFee"
	DeleteFeeCommand eventhorizon.CommandType = "DeleteFee"
	UpdateFeeCommand eventhorizon.CommandType = "UpdateFee"
)
View Source
const (
	CreateFeeKindCommand eventhorizon.CommandType = "CreateFeeKind"
	DeleteFeeKindCommand eventhorizon.CommandType = "DeleteFeeKind"
	UpdateFeeKindCommand eventhorizon.CommandType = "UpdateFeeKind"
)
View Source
const (
	ExpenseCreatedEvent eventhorizon.EventType = "ExpenseCreated"
	ExpenseDeletedEvent eventhorizon.EventType = "ExpenseDeleted"
	ExpenseUpdatedEvent eventhorizon.EventType = "ExpenseUpdated"
)
View Source
const (
	ExpensePurposeCreatedEvent eventhorizon.EventType = "ExpensePurposeCreated"
	ExpensePurposeDeletedEvent eventhorizon.EventType = "ExpensePurposeDeleted"
	ExpensePurposeUpdatedEvent eventhorizon.EventType = "ExpensePurposeUpdated"
)
View Source
const (
	FeeCreatedEvent eventhorizon.EventType = "FeeCreated"
	FeeDeletedEvent eventhorizon.EventType = "FeeDeleted"
	FeeUpdatedEvent eventhorizon.EventType = "FeeUpdated"
)
View Source
const (
	FeeKindCreatedEvent eventhorizon.EventType = "FeeKindCreated"
	FeeKindDeletedEvent eventhorizon.EventType = "FeeKindDeleted"
	FeeKindUpdatedEvent eventhorizon.EventType = "FeeKindUpdated"
)
View Source
const ExpenseAggregateType eventhorizon.AggregateType = "Expense"
View Source
const ExpensePurposeAggregateType eventhorizon.AggregateType = "ExpensePurpose"
View Source
const FeeAggregateType eventhorizon.AggregateType = "Fee"
View Source
const FeeKindAggregateType eventhorizon.AggregateType = "FeeKind"

Variables

This section is empty.

Functions

func ExpenseCommandTypes

func ExpenseCommandTypes() *expenseCommandTypes

func ExpenseEventTypes

func ExpenseEventTypes() *expenseEventTypes

func ExpensePurposeCommandTypes

func ExpensePurposeCommandTypes() *expensePurposeCommandTypes

func ExpensePurposeEventTypes

func ExpensePurposeEventTypes() *expensePurposeEventTypes

func FeeCommandTypes

func FeeCommandTypes() *feeCommandTypes

func FeeEventTypes

func FeeEventTypes() *feeEventTypes

func FeeKindCommandTypes

func FeeKindCommandTypes() *feeKindCommandTypes

func FeeKindEventTypes

func FeeKindEventTypes() *feeKindEventTypes

Types

type CreateExpense

type CreateExpense struct {
	Purpose *ExpensePurpose `json:"purpose" eh:"optional"`
	Amount  float64         `json:"amount" eh:"optional"`
	Profile *person.Profile `json:"profile" eh:"optional"`
	Date    *time.Time      `json:"date" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

func (*CreateExpense) AggregateID

func (o *CreateExpense) AggregateID() uuid.UUID

func (*CreateExpense) AggregateType

func (o *CreateExpense) AggregateType() eventhorizon.AggregateType

func (*CreateExpense) CommandType

func (o *CreateExpense) CommandType() eventhorizon.CommandType

type CreateExpensePurpose

type CreateExpensePurpose struct {
	Name        string    `json:"name" eh:"optional"`
	Description string    `json:"description" eh:"optional"`
	Id          uuid.UUID `json:"id" eh:"optional"`
}

func (*CreateExpensePurpose) AggregateID

func (o *CreateExpensePurpose) AggregateID() uuid.UUID

func (*CreateExpensePurpose) AggregateType

func (o *CreateExpensePurpose) AggregateType() eventhorizon.AggregateType

func (*CreateExpensePurpose) CommandType

type CreateFee

type CreateFee struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Amount  float64         `json:"amount" eh:"optional"`
	Kind    *FeeKind        `json:"kind" eh:"optional"`
	Date    *time.Time      `json:"date" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

func (*CreateFee) AggregateID

func (o *CreateFee) AggregateID() uuid.UUID

func (*CreateFee) AggregateType

func (o *CreateFee) AggregateType() eventhorizon.AggregateType

func (*CreateFee) CommandType

func (o *CreateFee) CommandType() eventhorizon.CommandType

type CreateFeeKind

type CreateFeeKind struct {
	Name        string    `json:"name" eh:"optional"`
	Amount      float64   `json:"amount" eh:"optional"`
	Description string    `json:"description" eh:"optional"`
	Id          uuid.UUID `json:"id" eh:"optional"`
}

func (*CreateFeeKind) AggregateID

func (o *CreateFeeKind) AggregateID() uuid.UUID

func (*CreateFeeKind) AggregateType

func (o *CreateFeeKind) AggregateType() eventhorizon.AggregateType

func (*CreateFeeKind) CommandType

func (o *CreateFeeKind) CommandType() eventhorizon.CommandType

type DeleteExpense

type DeleteExpense struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*DeleteExpense) AggregateID

func (o *DeleteExpense) AggregateID() uuid.UUID

func (*DeleteExpense) AggregateType

func (o *DeleteExpense) AggregateType() eventhorizon.AggregateType

func (*DeleteExpense) CommandType

func (o *DeleteExpense) CommandType() eventhorizon.CommandType

type DeleteExpensePurpose

type DeleteExpensePurpose struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*DeleteExpensePurpose) AggregateID

func (o *DeleteExpensePurpose) AggregateID() uuid.UUID

func (*DeleteExpensePurpose) AggregateType

func (o *DeleteExpensePurpose) AggregateType() eventhorizon.AggregateType

func (*DeleteExpensePurpose) CommandType

type DeleteFee

type DeleteFee struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*DeleteFee) AggregateID

func (o *DeleteFee) AggregateID() uuid.UUID

func (*DeleteFee) AggregateType

func (o *DeleteFee) AggregateType() eventhorizon.AggregateType

func (*DeleteFee) CommandType

func (o *DeleteFee) CommandType() eventhorizon.CommandType

type DeleteFeeKind

type DeleteFeeKind struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*DeleteFeeKind) AggregateID

func (o *DeleteFeeKind) AggregateID() uuid.UUID

func (*DeleteFeeKind) AggregateType

func (o *DeleteFeeKind) AggregateType() eventhorizon.AggregateType

func (*DeleteFeeKind) CommandType

func (o *DeleteFeeKind) CommandType() eventhorizon.CommandType

type Expense

type Expense struct {
	Purpose *ExpensePurpose `json:"purpose" eh:"optional"`
	Amount  float64         `json:"amount" eh:"optional"`
	Profile *person.Profile `json:"profile" eh:"optional"`
	Date    *time.Time      `json:"date" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

func NewExpense

func NewExpense() (ret *Expense)

func NewExpenseByPropNames

func NewExpenseByPropNames(intSalt int) (ret *Expense)

func NewExpensesByPropNames

func NewExpensesByPropNames(count int) []*Expense

func (*Expense) EntityID

func (o *Expense) EntityID() uuid.UUID

type ExpenseAggregateInitializer

type ExpenseAggregateInitializer struct {
	*eh.AggregateInitializer
	*ExpenseCommandHandler
	*ExpenseEventHandler
	ProjectorHandler *ExpenseEventHandler `json:"projectorHandler" eh:"optional"`
}

func NewExpenseAggregateInitializer

func NewExpenseAggregateInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *ExpenseAggregateInitializer)

type ExpenseCli

type ExpenseCli struct {
}

func NewExpenseCli

func NewExpenseCli() (ret *ExpenseCli)

type ExpenseClient

type ExpenseClient struct {
	Url    string       `json:"url" eh:"optional"`
	Client *http.Client `json:"client" eh:"optional"`
}

func NewExpenseClient

func NewExpenseClient(url string, client *http.Client) (ret *ExpenseClient)

func (*ExpenseClient) Create

func (o *ExpenseClient) Create(items []*Expense) (err error)

func (*ExpenseClient) ImportJSON

func (o *ExpenseClient) ImportJSON(fileJSON string) (err error)

func (*ExpenseClient) ReadFileJSON

func (o *ExpenseClient) ReadFileJSON(fileJSON string) (ret []*Expense, err error)

type ExpenseCommandHandler

type ExpenseCommandHandler struct {
	CreateHandler func(*CreateExpense, *Expense, eh.AggregateStoreEvent) (err error) `json:"createHandler" eh:"optional"`
	DeleteHandler func(*DeleteExpense, *Expense, eh.AggregateStoreEvent) (err error) `json:"deleteHandler" eh:"optional"`
	UpdateHandler func(*UpdateExpense, *Expense, eh.AggregateStoreEvent) (err error) `json:"updateHandler" eh:"optional"`
}

func (*ExpenseCommandHandler) AddCreatePreparer

func (o *ExpenseCommandHandler) AddCreatePreparer(preparer func(*CreateExpense, *Expense) (err error))

func (*ExpenseCommandHandler) AddDeletePreparer

func (o *ExpenseCommandHandler) AddDeletePreparer(preparer func(*DeleteExpense, *Expense) (err error))

func (*ExpenseCommandHandler) AddUpdatePreparer

func (o *ExpenseCommandHandler) AddUpdatePreparer(preparer func(*UpdateExpense, *Expense) (err error))

func (*ExpenseCommandHandler) Execute

func (*ExpenseCommandHandler) SetupCommandHandler

func (o *ExpenseCommandHandler) SetupCommandHandler() (err error)

type ExpenseCommandType

type ExpenseCommandType struct {
	// contains filtered or unexported fields
}

func (ExpenseCommandType) GetBSON

func (o ExpenseCommandType) GetBSON() (ret interface{}, err error)

func (*ExpenseCommandType) IsCreateExpense

func (o *ExpenseCommandType) IsCreateExpense() bool

func (*ExpenseCommandType) IsDeleteExpense

func (o *ExpenseCommandType) IsDeleteExpense() bool

func (*ExpenseCommandType) IsUpdateExpense

func (o *ExpenseCommandType) IsUpdateExpense() bool

func (ExpenseCommandType) MarshalJSON

func (o ExpenseCommandType) MarshalJSON() (ret []byte, err error)

func (*ExpenseCommandType) Name

func (o *ExpenseCommandType) Name() string

func (*ExpenseCommandType) Ordinal

func (o *ExpenseCommandType) Ordinal() int

func (*ExpenseCommandType) SetBSON

func (o *ExpenseCommandType) SetBSON(raw bson.Raw) (err error)

func (*ExpenseCommandType) UnmarshalJSON

func (o *ExpenseCommandType) UnmarshalJSON(data []byte) (err error)

type ExpenseCreated

type ExpenseCreated struct {
	Purpose *ExpensePurpose `json:"purpose" eh:"optional"`
	Amount  float64         `json:"amount" eh:"optional"`
	Profile *person.Profile `json:"profile" eh:"optional"`
	Date    *time.Time      `json:"date" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

type ExpenseDeleted

type ExpenseDeleted struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type ExpenseEventHandler

type ExpenseEventHandler struct {
	CreatedHandler func(*ExpenseCreated, *Expense) (err error) `json:"createdHandler" eh:"optional"`
	DeletedHandler func(*ExpenseDeleted, *Expense) (err error) `json:"deletedHandler" eh:"optional"`
	UpdatedHandler func(*ExpenseUpdated, *Expense) (err error) `json:"updatedHandler" eh:"optional"`
}

func (*ExpenseEventHandler) Apply

func (o *ExpenseEventHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*ExpenseEventHandler) SetupEventHandler

func (o *ExpenseEventHandler) SetupEventHandler() (err error)

type ExpenseEventType

type ExpenseEventType struct {
	// contains filtered or unexported fields
}

func (ExpenseEventType) GetBSON

func (o ExpenseEventType) GetBSON() (ret interface{}, err error)

func (*ExpenseEventType) IsExpenseCreated

func (o *ExpenseEventType) IsExpenseCreated() bool

func (*ExpenseEventType) IsExpenseDeleted

func (o *ExpenseEventType) IsExpenseDeleted() bool

func (*ExpenseEventType) IsExpenseUpdated

func (o *ExpenseEventType) IsExpenseUpdated() bool

func (ExpenseEventType) MarshalJSON

func (o ExpenseEventType) MarshalJSON() (ret []byte, err error)

func (*ExpenseEventType) Name

func (o *ExpenseEventType) Name() string

func (*ExpenseEventType) Ordinal

func (o *ExpenseEventType) Ordinal() int

func (*ExpenseEventType) SetBSON

func (o *ExpenseEventType) SetBSON(raw bson.Raw) (err error)

func (*ExpenseEventType) UnmarshalJSON

func (o *ExpenseEventType) UnmarshalJSON(data []byte) (err error)

type ExpenseExecutors

type ExpenseExecutors struct {
	Initial *ExpenseInitialExecutor `json:"initial" eh:"optional"`
}

func NewExpenseExecutors

func NewExpenseExecutors() (ret *ExpenseExecutors)

type ExpenseHandlers

type ExpenseHandlers struct {
	Initial *ExpenseInitialHandler `json:"initial" eh:"optional"`
}

func NewExpenseHandlers

func NewExpenseHandlers() (ret *ExpenseHandlers)

type ExpenseHttpCommandHandler

type ExpenseHttpCommandHandler struct {
	*eh.HttpCommandHandler
}

func NewExpenseHttpCommandHandler

func NewExpenseHttpCommandHandler(context context.Context, commandBus eventhorizon.CommandHandler) (ret *ExpenseHttpCommandHandler)

func (*ExpenseHttpCommandHandler) Create

func (*ExpenseHttpCommandHandler) Delete

func (*ExpenseHttpCommandHandler) Update

type ExpenseHttpQueryHandler

type ExpenseHttpQueryHandler struct {
	*eh.HttpQueryHandler
	QueryRepository *ExpenseQueryRepository `json:"queryRepository" eh:"optional"`
}

func NewExpenseHttpQueryHandler

func NewExpenseHttpQueryHandler(queryRepository *ExpenseQueryRepository) (ret *ExpenseHttpQueryHandler)

func (*ExpenseHttpQueryHandler) CountAll

func (*ExpenseHttpQueryHandler) CountById

func (*ExpenseHttpQueryHandler) ExistAll

func (*ExpenseHttpQueryHandler) ExistById

func (*ExpenseHttpQueryHandler) FindAll

func (*ExpenseHttpQueryHandler) FindById

type ExpenseInitialExecutor

type ExpenseInitialExecutor struct {
}

func NewExpenseInitialExecutor

func NewExpenseInitialExecutor() (ret *ExpenseInitialExecutor)

type ExpenseInitialHandler

type ExpenseInitialHandler struct {
}

func NewExpenseInitialHandler

func NewExpenseInitialHandler() (ret *ExpenseInitialHandler)

func (*ExpenseInitialHandler) Apply

func (o *ExpenseInitialHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*ExpenseInitialHandler) SetupEventHandler

func (o *ExpenseInitialHandler) SetupEventHandler() (err error)

type ExpensePurpose

type ExpensePurpose struct {
	Name        string    `json:"name" eh:"optional"`
	Description string    `json:"description" eh:"optional"`
	Id          uuid.UUID `json:"id" eh:"optional"`
}

func NewExpensePurpose

func NewExpensePurpose() (ret *ExpensePurpose)

func NewExpensePurposeByPropNames

func NewExpensePurposeByPropNames(intSalt int) (ret *ExpensePurpose)

func NewExpensePurposesByPropNames

func NewExpensePurposesByPropNames(count int) []*ExpensePurpose

func (*ExpensePurpose) EntityID

func (o *ExpensePurpose) EntityID() uuid.UUID

type ExpensePurposeAggregateInitializer

type ExpensePurposeAggregateInitializer struct {
	*eh.AggregateInitializer
	*ExpensePurposeCommandHandler
	*ExpensePurposeEventHandler
	ProjectorHandler *ExpensePurposeEventHandler `json:"projectorHandler" eh:"optional"`
}

func NewExpensePurposeAggregateInitializer

func NewExpensePurposeAggregateInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *ExpensePurposeAggregateInitializer)

type ExpensePurposeCli

type ExpensePurposeCli struct {
}

func NewExpensePurposeCli

func NewExpensePurposeCli() (ret *ExpensePurposeCli)

type ExpensePurposeClient

type ExpensePurposeClient struct {
	Url    string       `json:"url" eh:"optional"`
	Client *http.Client `json:"client" eh:"optional"`
}

func NewExpensePurposeClient

func NewExpensePurposeClient(url string, client *http.Client) (ret *ExpensePurposeClient)

func (*ExpensePurposeClient) Create

func (o *ExpensePurposeClient) Create(items []*ExpensePurpose) (err error)

func (*ExpensePurposeClient) ImportJSON

func (o *ExpensePurposeClient) ImportJSON(fileJSON string) (err error)

func (*ExpensePurposeClient) ReadFileJSON

func (o *ExpensePurposeClient) ReadFileJSON(fileJSON string) (ret []*ExpensePurpose, err error)

type ExpensePurposeCommandHandler

type ExpensePurposeCommandHandler struct {
	CreateHandler func(*CreateExpensePurpose, *ExpensePurpose, eh.AggregateStoreEvent) (err error) `json:"createHandler" eh:"optional"`
	DeleteHandler func(*DeleteExpensePurpose, *ExpensePurpose, eh.AggregateStoreEvent) (err error) `json:"deleteHandler" eh:"optional"`
	UpdateHandler func(*UpdateExpensePurpose, *ExpensePurpose, eh.AggregateStoreEvent) (err error) `json:"updateHandler" eh:"optional"`
}

func (*ExpensePurposeCommandHandler) AddCreatePreparer

func (o *ExpensePurposeCommandHandler) AddCreatePreparer(preparer func(*CreateExpensePurpose, *ExpensePurpose) (err error))

func (*ExpensePurposeCommandHandler) AddDeletePreparer

func (o *ExpensePurposeCommandHandler) AddDeletePreparer(preparer func(*DeleteExpensePurpose, *ExpensePurpose) (err error))

func (*ExpensePurposeCommandHandler) AddUpdatePreparer

func (o *ExpensePurposeCommandHandler) AddUpdatePreparer(preparer func(*UpdateExpensePurpose, *ExpensePurpose) (err error))

func (*ExpensePurposeCommandHandler) Execute

func (*ExpensePurposeCommandHandler) SetupCommandHandler

func (o *ExpensePurposeCommandHandler) SetupCommandHandler() (err error)

type ExpensePurposeCommandType

type ExpensePurposeCommandType struct {
	// contains filtered or unexported fields
}

func (ExpensePurposeCommandType) GetBSON

func (o ExpensePurposeCommandType) GetBSON() (ret interface{}, err error)

func (*ExpensePurposeCommandType) IsCreateExpensePurpose

func (o *ExpensePurposeCommandType) IsCreateExpensePurpose() bool

func (*ExpensePurposeCommandType) IsDeleteExpensePurpose

func (o *ExpensePurposeCommandType) IsDeleteExpensePurpose() bool

func (*ExpensePurposeCommandType) IsUpdateExpensePurpose

func (o *ExpensePurposeCommandType) IsUpdateExpensePurpose() bool

func (ExpensePurposeCommandType) MarshalJSON

func (o ExpensePurposeCommandType) MarshalJSON() (ret []byte, err error)

func (*ExpensePurposeCommandType) Name

func (*ExpensePurposeCommandType) Ordinal

func (o *ExpensePurposeCommandType) Ordinal() int

func (*ExpensePurposeCommandType) SetBSON

func (o *ExpensePurposeCommandType) SetBSON(raw bson.Raw) (err error)

func (*ExpensePurposeCommandType) UnmarshalJSON

func (o *ExpensePurposeCommandType) UnmarshalJSON(data []byte) (err error)

type ExpensePurposeCreated

type ExpensePurposeCreated struct {
	Name        string    `json:"name" eh:"optional"`
	Description string    `json:"description" eh:"optional"`
	Id          uuid.UUID `json:"id" eh:"optional"`
}

type ExpensePurposeDeleted

type ExpensePurposeDeleted struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type ExpensePurposeEventHandler

type ExpensePurposeEventHandler struct {
	CreatedHandler func(*ExpensePurposeCreated, *ExpensePurpose) (err error) `json:"createdHandler" eh:"optional"`
	DeletedHandler func(*ExpensePurposeDeleted, *ExpensePurpose) (err error) `json:"deletedHandler" eh:"optional"`
	UpdatedHandler func(*ExpensePurposeUpdated, *ExpensePurpose) (err error) `json:"updatedHandler" eh:"optional"`
}

func (*ExpensePurposeEventHandler) Apply

func (o *ExpensePurposeEventHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*ExpensePurposeEventHandler) SetupEventHandler

func (o *ExpensePurposeEventHandler) SetupEventHandler() (err error)

type ExpensePurposeEventType

type ExpensePurposeEventType struct {
	// contains filtered or unexported fields
}

func (ExpensePurposeEventType) GetBSON

func (o ExpensePurposeEventType) GetBSON() (ret interface{}, err error)

func (*ExpensePurposeEventType) IsExpensePurposeCreated

func (o *ExpensePurposeEventType) IsExpensePurposeCreated() bool

func (*ExpensePurposeEventType) IsExpensePurposeDeleted

func (o *ExpensePurposeEventType) IsExpensePurposeDeleted() bool

func (*ExpensePurposeEventType) IsExpensePurposeUpdated

func (o *ExpensePurposeEventType) IsExpensePurposeUpdated() bool

func (ExpensePurposeEventType) MarshalJSON

func (o ExpensePurposeEventType) MarshalJSON() (ret []byte, err error)

func (*ExpensePurposeEventType) Name

func (o *ExpensePurposeEventType) Name() string

func (*ExpensePurposeEventType) Ordinal

func (o *ExpensePurposeEventType) Ordinal() int

func (*ExpensePurposeEventType) SetBSON

func (o *ExpensePurposeEventType) SetBSON(raw bson.Raw) (err error)

func (*ExpensePurposeEventType) UnmarshalJSON

func (o *ExpensePurposeEventType) UnmarshalJSON(data []byte) (err error)

type ExpensePurposeExecutors

type ExpensePurposeExecutors struct {
	Initial *ExpensePurposeInitialExecutor `json:"initial" eh:"optional"`
}

func NewExpensePurposeExecutors

func NewExpensePurposeExecutors() (ret *ExpensePurposeExecutors)

type ExpensePurposeHandlers

type ExpensePurposeHandlers struct {
	Initial *ExpensePurposeInitialHandler `json:"initial" eh:"optional"`
}

func NewExpensePurposeHandlers

func NewExpensePurposeHandlers() (ret *ExpensePurposeHandlers)

type ExpensePurposeHttpCommandHandler

type ExpensePurposeHttpCommandHandler struct {
	*eh.HttpCommandHandler
}

func NewExpensePurposeHttpCommandHandler

func NewExpensePurposeHttpCommandHandler(context context.Context, commandBus eventhorizon.CommandHandler) (ret *ExpensePurposeHttpCommandHandler)

func (*ExpensePurposeHttpCommandHandler) Create

func (*ExpensePurposeHttpCommandHandler) Delete

func (*ExpensePurposeHttpCommandHandler) Update

type ExpensePurposeHttpQueryHandler

type ExpensePurposeHttpQueryHandler struct {
	*eh.HttpQueryHandler
	QueryRepository *ExpensePurposeQueryRepository `json:"queryRepository" eh:"optional"`
}

func NewExpensePurposeHttpQueryHandler

func NewExpensePurposeHttpQueryHandler(queryRepository *ExpensePurposeQueryRepository) (ret *ExpensePurposeHttpQueryHandler)

func (*ExpensePurposeHttpQueryHandler) CountAll

func (*ExpensePurposeHttpQueryHandler) CountById

func (*ExpensePurposeHttpQueryHandler) ExistAll

func (*ExpensePurposeHttpQueryHandler) ExistById

func (*ExpensePurposeHttpQueryHandler) FindAll

func (*ExpensePurposeHttpQueryHandler) FindById

type ExpensePurposeInitialExecutor

type ExpensePurposeInitialExecutor struct {
}

func NewExpensePurposeInitialExecutor

func NewExpensePurposeInitialExecutor() (ret *ExpensePurposeInitialExecutor)

type ExpensePurposeInitialHandler

type ExpensePurposeInitialHandler struct {
}

func NewExpensePurposeInitialHandler

func NewExpensePurposeInitialHandler() (ret *ExpensePurposeInitialHandler)

func (*ExpensePurposeInitialHandler) Apply

func (*ExpensePurposeInitialHandler) SetupEventHandler

func (o *ExpensePurposeInitialHandler) SetupEventHandler() (err error)

type ExpensePurposeQueryRepository

type ExpensePurposeQueryRepository struct {
	// contains filtered or unexported fields
}

func NewExpensePurposeQueryRepository

func NewExpensePurposeQueryRepository(repo eventhorizon.ReadRepo, context context.Context) (ret *ExpensePurposeQueryRepository)

func (*ExpensePurposeQueryRepository) CountAll

func (o *ExpensePurposeQueryRepository) CountAll() (ret int, err error)

func (*ExpensePurposeQueryRepository) CountById

func (o *ExpensePurposeQueryRepository) CountById(id uuid.UUID) (ret int, err error)

func (*ExpensePurposeQueryRepository) ExistAll

func (o *ExpensePurposeQueryRepository) ExistAll() (ret bool, err error)

func (*ExpensePurposeQueryRepository) ExistById

func (o *ExpensePurposeQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)

func (*ExpensePurposeQueryRepository) FindAll

func (o *ExpensePurposeQueryRepository) FindAll() (ret []*ExpensePurpose, err error)

func (*ExpensePurposeQueryRepository) FindById

func (o *ExpensePurposeQueryRepository) FindById(id uuid.UUID) (ret *ExpensePurpose, err error)

type ExpensePurposeRouter

type ExpensePurposeRouter struct {
	PathPrefix     string                            `json:"pathPrefix" eh:"optional"`
	QueryHandler   *ExpensePurposeHttpQueryHandler   `json:"queryHandler" eh:"optional"`
	CommandHandler *ExpensePurposeHttpCommandHandler `json:"commandHandler" eh:"optional"`
	Router         *mux.Router                       `json:"router" eh:"optional"`
}

func NewExpensePurposeRouter

func NewExpensePurposeRouter(pathPrefix string, context context.Context, commandBus eventhorizon.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *ExpensePurposeRouter)

func (*ExpensePurposeRouter) Setup

func (o *ExpensePurposeRouter) Setup(router *mux.Router) (err error)

type ExpensePurposeUpdated

type ExpensePurposeUpdated struct {
	Name        string    `json:"name" eh:"optional"`
	Description string    `json:"description" eh:"optional"`
	Id          uuid.UUID `json:"id" eh:"optional"`
}

type ExpenseQueryRepository

type ExpenseQueryRepository struct {
	// contains filtered or unexported fields
}

func NewExpenseQueryRepository

func NewExpenseQueryRepository(repo eventhorizon.ReadRepo, context context.Context) (ret *ExpenseQueryRepository)

func (*ExpenseQueryRepository) CountAll

func (o *ExpenseQueryRepository) CountAll() (ret int, err error)

func (*ExpenseQueryRepository) CountById

func (o *ExpenseQueryRepository) CountById(id uuid.UUID) (ret int, err error)

func (*ExpenseQueryRepository) ExistAll

func (o *ExpenseQueryRepository) ExistAll() (ret bool, err error)

func (*ExpenseQueryRepository) ExistById

func (o *ExpenseQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)

func (*ExpenseQueryRepository) FindAll

func (o *ExpenseQueryRepository) FindAll() (ret []*Expense, err error)

func (*ExpenseQueryRepository) FindById

func (o *ExpenseQueryRepository) FindById(id uuid.UUID) (ret *Expense, err error)

type ExpenseRouter

type ExpenseRouter struct {
	PathPrefix     string                     `json:"pathPrefix" eh:"optional"`
	QueryHandler   *ExpenseHttpQueryHandler   `json:"queryHandler" eh:"optional"`
	CommandHandler *ExpenseHttpCommandHandler `json:"commandHandler" eh:"optional"`
	Router         *mux.Router                `json:"router" eh:"optional"`
}

func NewExpenseRouter

func NewExpenseRouter(pathPrefix string, context context.Context, commandBus eventhorizon.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *ExpenseRouter)

func (*ExpenseRouter) Setup

func (o *ExpenseRouter) Setup(router *mux.Router) (err error)

type ExpenseUpdated

type ExpenseUpdated struct {
	Purpose *ExpensePurpose `json:"purpose" eh:"optional"`
	Amount  float64         `json:"amount" eh:"optional"`
	Profile *person.Profile `json:"profile" eh:"optional"`
	Date    *time.Time      `json:"date" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

type Fee

type Fee struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Amount  float64         `json:"amount" eh:"optional"`
	Kind    *FeeKind        `json:"kind" eh:"optional"`
	Date    *time.Time      `json:"date" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

func NewFee

func NewFee() (ret *Fee)

func NewFeeByPropNames

func NewFeeByPropNames(intSalt int) (ret *Fee)

func NewFeesByPropNames

func NewFeesByPropNames(count int) []*Fee

func (*Fee) EntityID

func (o *Fee) EntityID() uuid.UUID

type FeeAggregateInitializer

type FeeAggregateInitializer struct {
	*eh.AggregateInitializer
	*FeeCommandHandler
	*FeeEventHandler
	ProjectorHandler *FeeEventHandler `json:"projectorHandler" eh:"optional"`
}

func NewFeeAggregateInitializer

func NewFeeAggregateInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *FeeAggregateInitializer)

type FeeCli

type FeeCli struct {
}

func NewFeeCli

func NewFeeCli() (ret *FeeCli)

type FeeClient

type FeeClient struct {
	Url    string       `json:"url" eh:"optional"`
	Client *http.Client `json:"client" eh:"optional"`
}

func NewFeeClient

func NewFeeClient(url string, client *http.Client) (ret *FeeClient)

func (*FeeClient) Create

func (o *FeeClient) Create(items []*Fee) (err error)

func (*FeeClient) ImportJSON

func (o *FeeClient) ImportJSON(fileJSON string) (err error)

func (*FeeClient) ReadFileJSON

func (o *FeeClient) ReadFileJSON(fileJSON string) (ret []*Fee, err error)

type FeeCommandHandler

type FeeCommandHandler struct {
	CreateHandler func(*CreateFee, *Fee, eh.AggregateStoreEvent) (err error) `json:"createHandler" eh:"optional"`
	DeleteHandler func(*DeleteFee, *Fee, eh.AggregateStoreEvent) (err error) `json:"deleteHandler" eh:"optional"`
	UpdateHandler func(*UpdateFee, *Fee, eh.AggregateStoreEvent) (err error) `json:"updateHandler" eh:"optional"`
}

func (*FeeCommandHandler) AddCreatePreparer

func (o *FeeCommandHandler) AddCreatePreparer(preparer func(*CreateFee, *Fee) (err error))

func (*FeeCommandHandler) AddDeletePreparer

func (o *FeeCommandHandler) AddDeletePreparer(preparer func(*DeleteFee, *Fee) (err error))

func (*FeeCommandHandler) AddUpdatePreparer

func (o *FeeCommandHandler) AddUpdatePreparer(preparer func(*UpdateFee, *Fee) (err error))

func (*FeeCommandHandler) Execute

func (*FeeCommandHandler) SetupCommandHandler

func (o *FeeCommandHandler) SetupCommandHandler() (err error)

type FeeCommandType

type FeeCommandType struct {
	// contains filtered or unexported fields
}

func (FeeCommandType) GetBSON

func (o FeeCommandType) GetBSON() (ret interface{}, err error)

func (*FeeCommandType) IsCreateFee

func (o *FeeCommandType) IsCreateFee() bool

func (*FeeCommandType) IsDeleteFee

func (o *FeeCommandType) IsDeleteFee() bool

func (*FeeCommandType) IsUpdateFee

func (o *FeeCommandType) IsUpdateFee() bool

func (FeeCommandType) MarshalJSON

func (o FeeCommandType) MarshalJSON() (ret []byte, err error)

func (*FeeCommandType) Name

func (o *FeeCommandType) Name() string

func (*FeeCommandType) Ordinal

func (o *FeeCommandType) Ordinal() int

func (*FeeCommandType) SetBSON

func (o *FeeCommandType) SetBSON(raw bson.Raw) (err error)

func (*FeeCommandType) UnmarshalJSON

func (o *FeeCommandType) UnmarshalJSON(data []byte) (err error)

type FeeCreated

type FeeCreated struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Amount  float64         `json:"amount" eh:"optional"`
	Kind    *FeeKind        `json:"kind" eh:"optional"`
	Date    *time.Time      `json:"date" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

type FeeDeleted

type FeeDeleted struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type FeeEventHandler

type FeeEventHandler struct {
	CreatedHandler func(*FeeCreated, *Fee) (err error) `json:"createdHandler" eh:"optional"`
	DeletedHandler func(*FeeDeleted, *Fee) (err error) `json:"deletedHandler" eh:"optional"`
	UpdatedHandler func(*FeeUpdated, *Fee) (err error) `json:"updatedHandler" eh:"optional"`
}

func (*FeeEventHandler) Apply

func (o *FeeEventHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*FeeEventHandler) SetupEventHandler

func (o *FeeEventHandler) SetupEventHandler() (err error)

type FeeEventType

type FeeEventType struct {
	// contains filtered or unexported fields
}

func (FeeEventType) GetBSON

func (o FeeEventType) GetBSON() (ret interface{}, err error)

func (*FeeEventType) IsFeeCreated

func (o *FeeEventType) IsFeeCreated() bool

func (*FeeEventType) IsFeeDeleted

func (o *FeeEventType) IsFeeDeleted() bool

func (*FeeEventType) IsFeeUpdated

func (o *FeeEventType) IsFeeUpdated() bool

func (FeeEventType) MarshalJSON

func (o FeeEventType) MarshalJSON() (ret []byte, err error)

func (*FeeEventType) Name

func (o *FeeEventType) Name() string

func (*FeeEventType) Ordinal

func (o *FeeEventType) Ordinal() int

func (*FeeEventType) SetBSON

func (o *FeeEventType) SetBSON(raw bson.Raw) (err error)

func (*FeeEventType) UnmarshalJSON

func (o *FeeEventType) UnmarshalJSON(data []byte) (err error)

type FeeExecutors

type FeeExecutors struct {
	Initial *FeeInitialExecutor `json:"initial" eh:"optional"`
}

func NewFeeExecutors

func NewFeeExecutors() (ret *FeeExecutors)

type FeeHandlers

type FeeHandlers struct {
	Initial *FeeInitialHandler `json:"initial" eh:"optional"`
}

func NewFeeHandlers

func NewFeeHandlers() (ret *FeeHandlers)

type FeeHttpCommandHandler

type FeeHttpCommandHandler struct {
	*eh.HttpCommandHandler
}

func NewFeeHttpCommandHandler

func NewFeeHttpCommandHandler(context context.Context, commandBus eventhorizon.CommandHandler) (ret *FeeHttpCommandHandler)

func (*FeeHttpCommandHandler) Create

func (*FeeHttpCommandHandler) Delete

func (*FeeHttpCommandHandler) Update

type FeeHttpQueryHandler

type FeeHttpQueryHandler struct {
	*eh.HttpQueryHandler
	QueryRepository *FeeQueryRepository `json:"queryRepository" eh:"optional"`
}

func NewFeeHttpQueryHandler

func NewFeeHttpQueryHandler(queryRepository *FeeQueryRepository) (ret *FeeHttpQueryHandler)

func (*FeeHttpQueryHandler) CountAll

func (o *FeeHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)

func (*FeeHttpQueryHandler) CountById

func (o *FeeHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)

func (*FeeHttpQueryHandler) ExistAll

func (o *FeeHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)

func (*FeeHttpQueryHandler) ExistById

func (o *FeeHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)

func (*FeeHttpQueryHandler) FindAll

func (*FeeHttpQueryHandler) FindById

func (o *FeeHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)

type FeeInitialExecutor

type FeeInitialExecutor struct {
}

func NewFeeInitialExecutor

func NewFeeInitialExecutor() (ret *FeeInitialExecutor)

type FeeInitialHandler

type FeeInitialHandler struct {
}

func NewFeeInitialHandler

func NewFeeInitialHandler() (ret *FeeInitialHandler)

func (*FeeInitialHandler) Apply

func (o *FeeInitialHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*FeeInitialHandler) SetupEventHandler

func (o *FeeInitialHandler) SetupEventHandler() (err error)

type FeeKind

type FeeKind struct {
	Name        string    `json:"name" eh:"optional"`
	Amount      float64   `json:"amount" eh:"optional"`
	Description string    `json:"description" eh:"optional"`
	Id          uuid.UUID `json:"id" eh:"optional"`
}

func NewFeeKind

func NewFeeKind() (ret *FeeKind)

func NewFeeKindByPropNames

func NewFeeKindByPropNames(intSalt int) (ret *FeeKind)

func NewFeeKindsByPropNames

func NewFeeKindsByPropNames(count int) []*FeeKind

func (*FeeKind) EntityID

func (o *FeeKind) EntityID() uuid.UUID

type FeeKindAggregateInitializer

type FeeKindAggregateInitializer struct {
	*eh.AggregateInitializer
	*FeeKindCommandHandler
	*FeeKindEventHandler
	ProjectorHandler *FeeKindEventHandler `json:"projectorHandler" eh:"optional"`
}

func NewFeeKindAggregateInitializer

func NewFeeKindAggregateInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *FeeKindAggregateInitializer)

type FeeKindCli

type FeeKindCli struct {
}

func NewFeeKindCli

func NewFeeKindCli() (ret *FeeKindCli)

type FeeKindClient

type FeeKindClient struct {
	Url    string       `json:"url" eh:"optional"`
	Client *http.Client `json:"client" eh:"optional"`
}

func NewFeeKindClient

func NewFeeKindClient(url string, client *http.Client) (ret *FeeKindClient)

func (*FeeKindClient) Create

func (o *FeeKindClient) Create(items []*FeeKind) (err error)

func (*FeeKindClient) ImportJSON

func (o *FeeKindClient) ImportJSON(fileJSON string) (err error)

func (*FeeKindClient) ReadFileJSON

func (o *FeeKindClient) ReadFileJSON(fileJSON string) (ret []*FeeKind, err error)

type FeeKindCommandHandler

type FeeKindCommandHandler struct {
	CreateHandler func(*CreateFeeKind, *FeeKind, eh.AggregateStoreEvent) (err error) `json:"createHandler" eh:"optional"`
	DeleteHandler func(*DeleteFeeKind, *FeeKind, eh.AggregateStoreEvent) (err error) `json:"deleteHandler" eh:"optional"`
	UpdateHandler func(*UpdateFeeKind, *FeeKind, eh.AggregateStoreEvent) (err error) `json:"updateHandler" eh:"optional"`
}

func (*FeeKindCommandHandler) AddCreatePreparer

func (o *FeeKindCommandHandler) AddCreatePreparer(preparer func(*CreateFeeKind, *FeeKind) (err error))

func (*FeeKindCommandHandler) AddDeletePreparer

func (o *FeeKindCommandHandler) AddDeletePreparer(preparer func(*DeleteFeeKind, *FeeKind) (err error))

func (*FeeKindCommandHandler) AddUpdatePreparer

func (o *FeeKindCommandHandler) AddUpdatePreparer(preparer func(*UpdateFeeKind, *FeeKind) (err error))

func (*FeeKindCommandHandler) Execute

func (*FeeKindCommandHandler) SetupCommandHandler

func (o *FeeKindCommandHandler) SetupCommandHandler() (err error)

type FeeKindCommandType

type FeeKindCommandType struct {
	// contains filtered or unexported fields
}

func (FeeKindCommandType) GetBSON

func (o FeeKindCommandType) GetBSON() (ret interface{}, err error)

func (*FeeKindCommandType) IsCreateFeeKind

func (o *FeeKindCommandType) IsCreateFeeKind() bool

func (*FeeKindCommandType) IsDeleteFeeKind

func (o *FeeKindCommandType) IsDeleteFeeKind() bool

func (*FeeKindCommandType) IsUpdateFeeKind

func (o *FeeKindCommandType) IsUpdateFeeKind() bool

func (FeeKindCommandType) MarshalJSON

func (o FeeKindCommandType) MarshalJSON() (ret []byte, err error)

func (*FeeKindCommandType) Name

func (o *FeeKindCommandType) Name() string

func (*FeeKindCommandType) Ordinal

func (o *FeeKindCommandType) Ordinal() int

func (*FeeKindCommandType) SetBSON

func (o *FeeKindCommandType) SetBSON(raw bson.Raw) (err error)

func (*FeeKindCommandType) UnmarshalJSON

func (o *FeeKindCommandType) UnmarshalJSON(data []byte) (err error)

type FeeKindCreated

type FeeKindCreated struct {
	Name        string    `json:"name" eh:"optional"`
	Amount      float64   `json:"amount" eh:"optional"`
	Description string    `json:"description" eh:"optional"`
	Id          uuid.UUID `json:"id" eh:"optional"`
}

type FeeKindDeleted

type FeeKindDeleted struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type FeeKindEventHandler

type FeeKindEventHandler struct {
	CreatedHandler func(*FeeKindCreated, *FeeKind) (err error) `json:"createdHandler" eh:"optional"`
	DeletedHandler func(*FeeKindDeleted, *FeeKind) (err error) `json:"deletedHandler" eh:"optional"`
	UpdatedHandler func(*FeeKindUpdated, *FeeKind) (err error) `json:"updatedHandler" eh:"optional"`
}

func (*FeeKindEventHandler) Apply

func (o *FeeKindEventHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*FeeKindEventHandler) SetupEventHandler

func (o *FeeKindEventHandler) SetupEventHandler() (err error)

type FeeKindEventType

type FeeKindEventType struct {
	// contains filtered or unexported fields
}

func (FeeKindEventType) GetBSON

func (o FeeKindEventType) GetBSON() (ret interface{}, err error)

func (*FeeKindEventType) IsFeeKindCreated

func (o *FeeKindEventType) IsFeeKindCreated() bool

func (*FeeKindEventType) IsFeeKindDeleted

func (o *FeeKindEventType) IsFeeKindDeleted() bool

func (*FeeKindEventType) IsFeeKindUpdated

func (o *FeeKindEventType) IsFeeKindUpdated() bool

func (FeeKindEventType) MarshalJSON

func (o FeeKindEventType) MarshalJSON() (ret []byte, err error)

func (*FeeKindEventType) Name

func (o *FeeKindEventType) Name() string

func (*FeeKindEventType) Ordinal

func (o *FeeKindEventType) Ordinal() int

func (*FeeKindEventType) SetBSON

func (o *FeeKindEventType) SetBSON(raw bson.Raw) (err error)

func (*FeeKindEventType) UnmarshalJSON

func (o *FeeKindEventType) UnmarshalJSON(data []byte) (err error)

type FeeKindExecutors

type FeeKindExecutors struct {
	Initial *FeeKindInitialExecutor `json:"initial" eh:"optional"`
}

func NewFeeKindExecutors

func NewFeeKindExecutors() (ret *FeeKindExecutors)

type FeeKindHandlers

type FeeKindHandlers struct {
	Initial *FeeKindInitialHandler `json:"initial" eh:"optional"`
}

func NewFeeKindHandlers

func NewFeeKindHandlers() (ret *FeeKindHandlers)

type FeeKindHttpCommandHandler

type FeeKindHttpCommandHandler struct {
	*eh.HttpCommandHandler
}

func NewFeeKindHttpCommandHandler

func NewFeeKindHttpCommandHandler(context context.Context, commandBus eventhorizon.CommandHandler) (ret *FeeKindHttpCommandHandler)

func (*FeeKindHttpCommandHandler) Create

func (*FeeKindHttpCommandHandler) Delete

func (*FeeKindHttpCommandHandler) Update

type FeeKindHttpQueryHandler

type FeeKindHttpQueryHandler struct {
	*eh.HttpQueryHandler
	QueryRepository *FeeKindQueryRepository `json:"queryRepository" eh:"optional"`
}

func NewFeeKindHttpQueryHandler

func NewFeeKindHttpQueryHandler(queryRepository *FeeKindQueryRepository) (ret *FeeKindHttpQueryHandler)

func (*FeeKindHttpQueryHandler) CountAll

func (*FeeKindHttpQueryHandler) CountById

func (*FeeKindHttpQueryHandler) ExistAll

func (*FeeKindHttpQueryHandler) ExistById

func (*FeeKindHttpQueryHandler) FindAll

func (*FeeKindHttpQueryHandler) FindById

type FeeKindInitialExecutor

type FeeKindInitialExecutor struct {
}

func NewFeeKindInitialExecutor

func NewFeeKindInitialExecutor() (ret *FeeKindInitialExecutor)

type FeeKindInitialHandler

type FeeKindInitialHandler struct {
}

func NewFeeKindInitialHandler

func NewFeeKindInitialHandler() (ret *FeeKindInitialHandler)

func (*FeeKindInitialHandler) Apply

func (o *FeeKindInitialHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*FeeKindInitialHandler) SetupEventHandler

func (o *FeeKindInitialHandler) SetupEventHandler() (err error)

type FeeKindQueryRepository

type FeeKindQueryRepository struct {
	// contains filtered or unexported fields
}

func NewFeeKindQueryRepository

func NewFeeKindQueryRepository(repo eventhorizon.ReadRepo, context context.Context) (ret *FeeKindQueryRepository)

func (*FeeKindQueryRepository) CountAll

func (o *FeeKindQueryRepository) CountAll() (ret int, err error)

func (*FeeKindQueryRepository) CountById

func (o *FeeKindQueryRepository) CountById(id uuid.UUID) (ret int, err error)

func (*FeeKindQueryRepository) ExistAll

func (o *FeeKindQueryRepository) ExistAll() (ret bool, err error)

func (*FeeKindQueryRepository) ExistById

func (o *FeeKindQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)

func (*FeeKindQueryRepository) FindAll

func (o *FeeKindQueryRepository) FindAll() (ret []*FeeKind, err error)

func (*FeeKindQueryRepository) FindById

func (o *FeeKindQueryRepository) FindById(id uuid.UUID) (ret *FeeKind, err error)

type FeeKindRouter

type FeeKindRouter struct {
	PathPrefix     string                     `json:"pathPrefix" eh:"optional"`
	QueryHandler   *FeeKindHttpQueryHandler   `json:"queryHandler" eh:"optional"`
	CommandHandler *FeeKindHttpCommandHandler `json:"commandHandler" eh:"optional"`
	Router         *mux.Router                `json:"router" eh:"optional"`
}

func NewFeeKindRouter

func NewFeeKindRouter(pathPrefix string, context context.Context, commandBus eventhorizon.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *FeeKindRouter)

func (*FeeKindRouter) Setup

func (o *FeeKindRouter) Setup(router *mux.Router) (err error)

type FeeKindUpdated

type FeeKindUpdated struct {
	Name        string    `json:"name" eh:"optional"`
	Amount      float64   `json:"amount" eh:"optional"`
	Description string    `json:"description" eh:"optional"`
	Id          uuid.UUID `json:"id" eh:"optional"`
}

type FeeQueryRepository

type FeeQueryRepository struct {
	// contains filtered or unexported fields
}

func NewFeeQueryRepository

func NewFeeQueryRepository(repo eventhorizon.ReadRepo, context context.Context) (ret *FeeQueryRepository)

func (*FeeQueryRepository) CountAll

func (o *FeeQueryRepository) CountAll() (ret int, err error)

func (*FeeQueryRepository) CountById

func (o *FeeQueryRepository) CountById(id uuid.UUID) (ret int, err error)

func (*FeeQueryRepository) ExistAll

func (o *FeeQueryRepository) ExistAll() (ret bool, err error)

func (*FeeQueryRepository) ExistById

func (o *FeeQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)

func (*FeeQueryRepository) FindAll

func (o *FeeQueryRepository) FindAll() (ret []*Fee, err error)

func (*FeeQueryRepository) FindById

func (o *FeeQueryRepository) FindById(id uuid.UUID) (ret *Fee, err error)

type FeeRouter

type FeeRouter struct {
	PathPrefix     string                 `json:"pathPrefix" eh:"optional"`
	QueryHandler   *FeeHttpQueryHandler   `json:"queryHandler" eh:"optional"`
	CommandHandler *FeeHttpCommandHandler `json:"commandHandler" eh:"optional"`
	Router         *mux.Router            `json:"router" eh:"optional"`
}

func NewFeeRouter

func NewFeeRouter(pathPrefix string, context context.Context, commandBus eventhorizon.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *FeeRouter)

func (*FeeRouter) Setup

func (o *FeeRouter) Setup(router *mux.Router) (err error)

type FeeUpdated

type FeeUpdated struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Amount  float64         `json:"amount" eh:"optional"`
	Kind    *FeeKind        `json:"kind" eh:"optional"`
	Date    *time.Time      `json:"date" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

type FinanceCli

type FinanceCli struct {
	ExpenseCli        *ExpenseCli        `json:"expenseCli" eh:"optional"`
	ExpensePurposeCli *ExpensePurposeCli `json:"expensePurposeCli" eh:"optional"`
	FeeCli            *FeeCli            `json:"feeCli" eh:"optional"`
	FeeKindCli        *FeeKindCli        `json:"feeKindCli" eh:"optional"`
}

func NewFinanceCli

func NewFinanceCli() (ret *FinanceCli)

type FinanceClient

type FinanceClient struct {
	Url                  string                `json:"url" eh:"optional"`
	Client               *http.Client          `json:"client" eh:"optional"`
	ExpenseClient        *ExpenseClient        `json:"expenseClient" eh:"optional"`
	ExpensePurposeClient *ExpensePurposeClient `json:"expensePurposeClient" eh:"optional"`
	FeeClient            *FeeClient            `json:"feeClient" eh:"optional"`
	FeeKindClient        *FeeKindClient        `json:"feeKindClient" eh:"optional"`
}

func NewFinanceClient

func NewFinanceClient(url string, client *http.Client) (ret *FinanceClient)

type FinanceEventhorizonInitializer

type FinanceEventhorizonInitializer struct {
	ExpenseAggregateInitializer        *ExpenseAggregateInitializer        `json:"expenseAggregateInitializer" eh:"optional"`
	ExpensePurposeAggregateInitializer *ExpensePurposeAggregateInitializer `json:"expensePurposeAggregateInitializer" eh:"optional"`
	FeeAggregateInitializer            *FeeAggregateInitializer            `json:"feeAggregateInitializer" eh:"optional"`
	FeeKindAggregateInitializer        *FeeKindAggregateInitializer        `json:"feeKindAggregateInitializer" eh:"optional"`
	// contains filtered or unexported fields
}

func NewFinanceEventhorizonInitializer

func NewFinanceEventhorizonInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *FinanceEventhorizonInitializer)

func (*FinanceEventhorizonInitializer) Setup

func (o *FinanceEventhorizonInitializer) Setup() (err error)

type FinanceRouter

type FinanceRouter struct {
	PathPrefix           string                `json:"pathPrefix" eh:"optional"`
	ExpenseRouter        *ExpenseRouter        `json:"expenseRouter" eh:"optional"`
	ExpensePurposeRouter *ExpensePurposeRouter `json:"expensePurposeRouter" eh:"optional"`
	FeeRouter            *FeeRouter            `json:"feeRouter" eh:"optional"`
	FeeKindRouter        *FeeKindRouter        `json:"feeKindRouter" eh:"optional"`
	Router               *mux.Router           `json:"router" eh:"optional"`
}

func NewFinanceRouter

func NewFinanceRouter(pathPrefix string, context context.Context, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *FinanceRouter)

func (*FinanceRouter) Setup

func (o *FinanceRouter) Setup(router *mux.Router) (err error)

type UpdateExpense

type UpdateExpense struct {
	Purpose *ExpensePurpose `json:"purpose" eh:"optional"`
	Amount  float64         `json:"amount" eh:"optional"`
	Profile *person.Profile `json:"profile" eh:"optional"`
	Date    *time.Time      `json:"date" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

func (*UpdateExpense) AggregateID

func (o *UpdateExpense) AggregateID() uuid.UUID

func (*UpdateExpense) AggregateType

func (o *UpdateExpense) AggregateType() eventhorizon.AggregateType

func (*UpdateExpense) CommandType

func (o *UpdateExpense) CommandType() eventhorizon.CommandType

type UpdateExpensePurpose

type UpdateExpensePurpose struct {
	Name        string    `json:"name" eh:"optional"`
	Description string    `json:"description" eh:"optional"`
	Id          uuid.UUID `json:"id" eh:"optional"`
}

func (*UpdateExpensePurpose) AggregateID

func (o *UpdateExpensePurpose) AggregateID() uuid.UUID

func (*UpdateExpensePurpose) AggregateType

func (o *UpdateExpensePurpose) AggregateType() eventhorizon.AggregateType

func (*UpdateExpensePurpose) CommandType

type UpdateFee

type UpdateFee struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Amount  float64         `json:"amount" eh:"optional"`
	Kind    *FeeKind        `json:"kind" eh:"optional"`
	Date    *time.Time      `json:"date" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

func (*UpdateFee) AggregateID

func (o *UpdateFee) AggregateID() uuid.UUID

func (*UpdateFee) AggregateType

func (o *UpdateFee) AggregateType() eventhorizon.AggregateType

func (*UpdateFee) CommandType

func (o *UpdateFee) CommandType() eventhorizon.CommandType

type UpdateFeeKind

type UpdateFeeKind struct {
	Name        string    `json:"name" eh:"optional"`
	Amount      float64   `json:"amount" eh:"optional"`
	Description string    `json:"description" eh:"optional"`
	Id          uuid.UUID `json:"id" eh:"optional"`
}

func (*UpdateFeeKind) AggregateID

func (o *UpdateFeeKind) AggregateID() uuid.UUID

func (*UpdateFeeKind) AggregateType

func (o *UpdateFeeKind) AggregateType() eventhorizon.AggregateType

func (*UpdateFeeKind) CommandType

func (o *UpdateFeeKind) CommandType() eventhorizon.CommandType

Jump to

Keyboard shortcuts

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