MCPcopy Create free account

hub / github.com/dhamidi/ess / types & classes

Types & classes44 in github.com/dhamidi/ess

↓ 6 callersFuncTypeEventHandlerFunc
EventHandlerFunc is a wrapper type to allow a function to fulfull the EventHandler interface by calling the function.
interfaces.go:75
InterfaceAggregate
Aggregate defines the necessary methods for acting interacting with an event sourced application. Aggregates receives requests for state changes in t
interfaces.go:15
StructAllPostsInMemory
examples/blog/all_posts.go:57
StructAllSessionsInMemory
examples/blog/sessions.go:24
StructApplication
Application represents an event sourced application. Any interaction with an application happens by sending it commands. Commands are messages expre
application.go:40
StructBcryptedPassword
BcryptedPassword is an implementation for securely handling password parameters. It uses the bcrypt algorithm for hashing passwords.
values.go:154
InterfaceClock
Clock is an interface for providing the current time. This interface exists to decouple objects that need access to the current time from the system
interfaces.go:33
StructCommand
Command represents a message sent to your application with the intention to change application state. Commands are named in the imperative, e.g. "sig
command.go:163
StructCommandDefinition
CommandDefinition is used for defining the commands accepted by the application. Essentially it is a dynamically built definition of messages the sys
command.go:70
InterfaceCommandHandler
CommandHandler defines the interface for handling commands.
interfaces.go:60
StructCommandResult
CommandResult represents the result of the application handling a command.
command.go:10
StructEmail
Email is an implementation of value for handling email addresses. It parses email addresses according to RFC 5322, e.g. "Barry Gibbs <bg@example.com>"
values.go:122
StructEvent
Event represents a state change that has occurred. Events are named in the past tense, e.g. "user.signed-up".
event.go:7
InterfaceEventHandler
EventHandler defines the interface for processing events.
interfaces.go:69
InterfaceEventPublisher
EventPublisher defines the interface for publishing events in aggregates.
interfaces.go:54
InterfaceEventStore
EventStore defines the necessary operations for persisting events and restoring application state from the log of persisted events.
interfaces.go:82
StructEventStoreTest
EventStoreTest encapsulates the tests for the EventStore interface. Any compliant implementation of an EventStore should pass these tests. This type
event_store_test_suite.go:11
StructEventsInMemory
EventsInMemory is an in-memory implementation of an event store.
events_in_memory.go:4
StructEventsOnDisk
EventsOnDisk is a persistent, file-based implementation of an EventStore. Events are serialized as JSON and appended to a log file. Storing and repl
events_on_disk.go:16
InterfaceForm
Form defines how to access form values. This allows commands to fill in parameters automatically. This interface is modelled after net/http.Request
interfaces.go:103
StructHTML
examples/blog/html.go:10
TypeAliasHTMLAttributes
examples/blog/html.go:89
StructHTMLForm
examples/blog/templates.go:72
StructHTMLFormField
examples/blog/templates.go:64
StructIdentifier
Identifier is a value for handling parameters that serve as identifiers. It accepts any string consisting only of dashes, lowercase letters and digit
values.go:90
StructIndexResource
examples/blog/main.go:270
StructLineWriter
application_test.go:19
StructPost
examples/blog/post.go:5
StructPostResource
examples/blog/main.go:206
StructPostsResource
examples/blog/main.go:140
StructProjectedPost
examples/blog/all_posts.go:16
StructProjectedUser
examples/blog/sessions.go:19
InterfaceSessionStore
examples/blog/main.go:287
StructSessionsResource
examples/blog/main.go:80
StructSignupsResource
examples/blog/main.go:58
StructStaticClock
StaticClock implements the Clock interface by returning a static time. Its intended use is in test cases.
clock.go:20
StructString
String is an implementation of Value for handling string parameters.
values.go:15
StructSystemTime
SystemTime wraps time.Now to implement the Clock interface.
clock.go:12
StructTime
Time is an implementation of Value for handling timestamps. It works with timestamps formatted according to time.RFC3339Nano.
values.go:60
StructUser
examples/blog/user.go:5
StructUser
examples/signup/main.go:22
StructValidationError
ValidationError captures errors about the values of a command's parameter or the state of a whole aggregate. Return errors of this type by the method
validation_error.go:13
InterfaceValue
Value is defines the interface for converting text into Go values. A value is used for capturing, sanitizing and validating the parameters accepted by
interfaces.go:40
StructtestAggregate
testAggregate is a dummy aggregate used for testing. This type is included in the main package, because it is referenced by EventStoreTest.
test_aggregate.go:6