Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dhamidi/ess
/ functions
Functions
196 in github.com/dhamidi/ess
⨍
Functions
196
◇
Types & classes
44
↓ 1 callers
Function
ShowPost
(w http.ResponseWriter, p *ProjectedPost)
examples/blog/templates.go:25
↓ 1 callers
Function
ShowPostForm
(w http.ResponseWriter)
examples/blog/templates.go:300
↓ 1 callers
Function
ShowPostFormError
(w http.ResponseWriter, params *ess.Command, err error)
examples/blog/templates.go:308
↓ 1 callers
Function
ShowSignupForm
(w http.ResponseWriter)
examples/blog/templates.go:213
↓ 1 callers
Function
ShowSignupFormErrors
(w http.ResponseWriter, params *ess.Command, err error)
examples/blog/templates.go:220
↓ 1 callers
Method
SignUp
(params *ess.Command)
examples/blog/user.go:33
↓ 1 callers
Method
Store
Store stores the given events in this event store. It never returns an error.
events_in_memory.go:18
↓ 1 callers
Function
TrimmedString
TrimmedString constructs a string value which removes initial and trailing whitespace from the initial string.
values.go:23
↓ 1 callers
Method
Write
(title, body, author string)
examples/blog/post.go:89
↓ 1 callers
Method
addParams
(rows *[]*HTML)
examples/blog/templates.go:168
↓ 1 callers
Method
handleEdits
(w http.ResponseWriter, req *http.Request, postId string)
examples/blog/main.go:235
↓ 1 callers
Method
testStoredEventsCanBeReplayedByStreamId
(t *testing.T)
event_store_test_suite.go:36
↓ 1 callers
Method
testStoredEventsCanBeReplayedOverAllStreams
(t *testing.T)
event_store_test_suite.go:75
Method
A
(name, value string)
examples/blog/html.go:91
Method
AggregateId
AggregateId returns the id of the command's receiver.
command.go:23
Method
ById
(id string)
examples/blog/all_posts.go:80
Method
ById
(id string)
examples/blog/sessions.go:51
Method
Copy
()
values.go:50
Method
Copy
()
values.go:69
Method
Copy
()
values.go:115
Method
Copy
()
values.go:144
Method
Copy
Copy copies the password. The copy does not contain the password's plain text anymore.
values.go:177
Function
EmailAddress
EmailAddress returns a new, empty email value.
values.go:149
Method
FromForm
FromForm is a convenience method to create a new command instance and populate immediately from form.
command.go:149
Method
HandleCommand
(command *Command)
test_aggregate.go:38
Method
HandleCommand
(command *ess.Command)
examples/blog/post.go:32
Method
HandleCommand
(command *ess.Command)
examples/blog/user.go:21
Method
HandleCommand
(command *ess.Command)
examples/signup/main.go:43
Method
HandleEvent
(e *Event)
test_aggregate.go:32
Method
HandleEvent
HandleEvent implements the EventHandler interface.
interfaces.go:78
Method
HandleEvent
(event *ess.Event)
examples/blog/all_posts.go:69
Method
HandleEvent
(event *ess.Event)
examples/blog/post.go:22
Method
HandleEvent
(event *ess.Event)
examples/blog/user.go:106
Method
HandleEvent
(event *ess.Event)
examples/blog/sessions.go:34
Method
Id
()
test_aggregate.go:28
Method
Id
Id sets the name and type of the field that is considered identify the command's receiver. The default is to use a field named "id" of type "Identifi
command.go:98
Method
Id
()
examples/blog/post.go:16
Method
Id
()
examples/blog/user.go:118
Method
Id
()
examples/signup/main.go:39
Function
NewUserFromCommand
(command *ess.Command)
examples/signup/main.go:18
Method
Now
()
clock.go:14
Method
Now
()
clock.go:24
Function
Password
Password returns a new, empty BcryptedPassword.
values.go:188
Function
PostFromCommand
(params *ess.Command)
examples/blog/main.go:50
Method
PublishEvent
PublishEvent stores event in this instance. This method is implemented to satisfy the EventPublisher interface. Using an EventsInMemory instance as
events_in_memory.go:41
Method
PublishWith
(publisher EventPublisher)
test_aggregate.go:45
Method
PublishWith
(publisher ess.EventPublisher)
examples/blog/post.go:17
Method
PublishWith
(events ess.EventPublisher)
examples/blog/user.go:122
Method
PublishWith
(publisher ess.EventPublisher)
examples/signup/main.go:34
Method
Replay
Replay handles all events with a matching stream id using receiver. It never returns an error. Use "*" as the stream id to match all events.
events_in_memory.go:27
Method
Replay
Replay replays all events matching streamId using receiver. Events are deserialized from the log file and then passed to receiver. Use "*" as the st
events_on_disk.go:57
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:62
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:85
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:145
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:212
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:276
Function
Show
(w http.ResponseWriter, thing interface{})
examples/blog/main.go:201
Function
ShowResult
(w http.ResponseWriter, result *ess.CommandResult)
examples/blog/main.go:187
Function
ShowSignupForm
(w http.ResponseWriter, req *http.Request)
examples/signup/main.go:99
Method
Store
Store stores events by serializing them as JSON and appending them to the configured log file. Intermediate directories are created.
events_on_disk.go:32
Method
String
()
values.go:46
Method
String
()
values.go:64
Method
String
()
values.go:111
Method
String
()
values.go:136
Method
String
String returns the hashed password as a string.
values.go:180
Method
String
String returns a multiline representation of the command. The information contained in the returned string is enough to reconstruct the command.
command.go:265
Method
String
()
examples/blog/html.go:22
Function
StringValue
StringValue constructs a string which returns str when calling its String method.
values.go:31
Function
TestApplication_Init_replaysHistoryThroughProjections
(t *testing.T)
application_test.go:168
Function
TestApplication_Send_acknowledgesCommand
(t *testing.T)
application_test.go:52
Function
TestApplication_Send_marksOccurrenceOnEvents
(t *testing.T)
application_test.go:103
Function
TestApplication_Send_projectsEvents
(t *testing.T)
application_test.go:144
Function
TestApplication_Send_replaysHistoryOnReceiver
(t *testing.T)
application_test.go:66
Function
TestApplication_Send_returnsErrorIfExecutingCommandFails
(t *testing.T)
application_test.go:91
Function
TestApplication_Send_storesEvents
(t *testing.T)
application_test.go:123
Function
TestEvent_Add_addsFieldToPayload
(t *testing.T)
event_test.go:17
Function
TestEvent_Add_overwritesExistingValues
(t *testing.T)
event_test.go:32
Function
TestEvent_For_usesAggregateIdAsStreamId
(t *testing.T)
event_test.go:8
Function
TestEvent_Occur_setsOccurredOnBasedOnClock
(t *testing.T)
event_test.go:43
Function
TestEvent_Persist_setsPersistedAtBasedOnClock
(t *testing.T)
event_test.go:53
Function
TestEventsInMemory_EventStoreBehavior
(t *testing.T)
event_store_test.go:10
Function
TestEventsOnDisk_EventStoreBehavior
(t *testing.T)
event_store_test.go:16
Function
TestUser_SignUp_failsIfUserHasSignedUpAlready
(t *testing.T)
examples/signup/main_test.go:9
Function
TestValidationError_Merge_mergesOtherErrorTypeUnderKeyAll
(t *testing.T)
validation_error_test.go:22
Function
TestValidationError_Ok_returnsFalseIfThereAreErrors
(t *testing.T)
validation_error_test.go:15
Function
TestValidationError_Ok_returnsTrueIfThereAreNoErrors
(t *testing.T)
validation_error_test.go:8
Function
TestValidationError_Return_returnsNilIfErrorIsOk
(t *testing.T)
validation_error_test.go:34
Function
TestValidationError_Return_returnsSelfIfErrorIsNotOk
(t *testing.T)
validation_error_test.go:41
Method
UnmarshalText
UnmarshalText accepts data as the string's content and applies and internal sanitization function to data.
values.go:40
Method
UnmarshalText
UnmarshalText returns ErrMalformedIdentifier identifier is data is not a valid identifier.
values.go:101
Method
UnmarshalText
UnmarshalText generates a password from data using bcrypt. It returns ErrEmpty is data is empty.
values.go:161
Function
UserFromCommand
(params *ess.Command)
examples/blog/main.go:54
Method
Write
(data []byte)
application_test.go:31
Function
main
()
examples/blog/main.go:304
Function
main
()
examples/signup/main.go:91
Function
newTestAggregateFromCommand
(command *Command)
test_aggregate.go:15
← previous
101–196 of 196, ranked by callers