MCPcopy Create free account

hub / github.com/dhamidi/ess / functions

Functions196 in github.com/dhamidi/ess

↓ 1 callersFunctionShowPost
(w http.ResponseWriter, p *ProjectedPost)
examples/blog/templates.go:25
↓ 1 callersFunctionShowPostForm
(w http.ResponseWriter)
examples/blog/templates.go:300
↓ 1 callersFunctionShowPostFormError
(w http.ResponseWriter, params *ess.Command, err error)
examples/blog/templates.go:308
↓ 1 callersFunctionShowSignupForm
(w http.ResponseWriter)
examples/blog/templates.go:213
↓ 1 callersFunctionShowSignupFormErrors
(w http.ResponseWriter, params *ess.Command, err error)
examples/blog/templates.go:220
↓ 1 callersMethodSignUp
(params *ess.Command)
examples/blog/user.go:33
↓ 1 callersMethodStore
Store stores the given events in this event store. It never returns an error.
events_in_memory.go:18
↓ 1 callersFunctionTrimmedString
TrimmedString constructs a string value which removes initial and trailing whitespace from the initial string.
values.go:23
↓ 1 callersMethodWrite
(title, body, author string)
examples/blog/post.go:89
↓ 1 callersMethodaddParams
(rows *[]*HTML)
examples/blog/templates.go:168
↓ 1 callersMethodhandleEdits
(w http.ResponseWriter, req *http.Request, postId string)
examples/blog/main.go:235
↓ 1 callersMethodtestStoredEventsCanBeReplayedByStreamId
(t *testing.T)
event_store_test_suite.go:36
↓ 1 callersMethodtestStoredEventsCanBeReplayedOverAllStreams
(t *testing.T)
event_store_test_suite.go:75
MethodA
(name, value string)
examples/blog/html.go:91
MethodAggregateId
AggregateId returns the id of the command's receiver.
command.go:23
MethodById
(id string)
examples/blog/all_posts.go:80
MethodById
(id string)
examples/blog/sessions.go:51
MethodCopy
()
values.go:50
MethodCopy
()
values.go:69
MethodCopy
()
values.go:115
MethodCopy
()
values.go:144
MethodCopy
Copy copies the password. The copy does not contain the password's plain text anymore.
values.go:177
FunctionEmailAddress
EmailAddress returns a new, empty email value.
values.go:149
MethodFromForm
FromForm is a convenience method to create a new command instance and populate immediately from form.
command.go:149
MethodHandleCommand
(command *Command)
test_aggregate.go:38
MethodHandleCommand
(command *ess.Command)
examples/blog/post.go:32
MethodHandleCommand
(command *ess.Command)
examples/blog/user.go:21
MethodHandleCommand
(command *ess.Command)
examples/signup/main.go:43
MethodHandleEvent
(e *Event)
test_aggregate.go:32
MethodHandleEvent
HandleEvent implements the EventHandler interface.
interfaces.go:78
MethodHandleEvent
(event *ess.Event)
examples/blog/all_posts.go:69
MethodHandleEvent
(event *ess.Event)
examples/blog/post.go:22
MethodHandleEvent
(event *ess.Event)
examples/blog/user.go:106
MethodHandleEvent
(event *ess.Event)
examples/blog/sessions.go:34
MethodId
()
test_aggregate.go:28
MethodId
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
MethodId
()
examples/blog/post.go:16
MethodId
()
examples/blog/user.go:118
MethodId
()
examples/signup/main.go:39
FunctionNewUserFromCommand
(command *ess.Command)
examples/signup/main.go:18
MethodNow
()
clock.go:14
MethodNow
()
clock.go:24
FunctionPassword
Password returns a new, empty BcryptedPassword.
values.go:188
FunctionPostFromCommand
(params *ess.Command)
examples/blog/main.go:50
MethodPublishEvent
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
MethodPublishWith
(publisher EventPublisher)
test_aggregate.go:45
MethodPublishWith
(publisher ess.EventPublisher)
examples/blog/post.go:17
MethodPublishWith
(events ess.EventPublisher)
examples/blog/user.go:122
MethodPublishWith
(publisher ess.EventPublisher)
examples/signup/main.go:34
MethodReplay
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
MethodReplay
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
MethodServeHTTP
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:62
MethodServeHTTP
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:85
MethodServeHTTP
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:145
MethodServeHTTP
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:212
MethodServeHTTP
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:276
FunctionShow
(w http.ResponseWriter, thing interface{})
examples/blog/main.go:201
FunctionShowResult
(w http.ResponseWriter, result *ess.CommandResult)
examples/blog/main.go:187
FunctionShowSignupForm
(w http.ResponseWriter, req *http.Request)
examples/signup/main.go:99
MethodStore
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
MethodString
()
values.go:46
MethodString
()
values.go:64
MethodString
()
values.go:111
MethodString
()
values.go:136
MethodString
String returns the hashed password as a string.
values.go:180
MethodString
String returns a multiline representation of the command. The information contained in the returned string is enough to reconstruct the command.
command.go:265
MethodString
()
examples/blog/html.go:22
FunctionStringValue
StringValue constructs a string which returns str when calling its String method.
values.go:31
FunctionTestApplication_Init_replaysHistoryThroughProjections
(t *testing.T)
application_test.go:168
FunctionTestApplication_Send_acknowledgesCommand
(t *testing.T)
application_test.go:52
FunctionTestApplication_Send_marksOccurrenceOnEvents
(t *testing.T)
application_test.go:103
FunctionTestApplication_Send_projectsEvents
(t *testing.T)
application_test.go:144
FunctionTestApplication_Send_replaysHistoryOnReceiver
(t *testing.T)
application_test.go:66
FunctionTestApplication_Send_returnsErrorIfExecutingCommandFails
(t *testing.T)
application_test.go:91
FunctionTestApplication_Send_storesEvents
(t *testing.T)
application_test.go:123
FunctionTestEvent_Add_addsFieldToPayload
(t *testing.T)
event_test.go:17
FunctionTestEvent_Add_overwritesExistingValues
(t *testing.T)
event_test.go:32
FunctionTestEvent_For_usesAggregateIdAsStreamId
(t *testing.T)
event_test.go:8
FunctionTestEvent_Occur_setsOccurredOnBasedOnClock
(t *testing.T)
event_test.go:43
FunctionTestEvent_Persist_setsPersistedAtBasedOnClock
(t *testing.T)
event_test.go:53
FunctionTestEventsInMemory_EventStoreBehavior
(t *testing.T)
event_store_test.go:10
FunctionTestEventsOnDisk_EventStoreBehavior
(t *testing.T)
event_store_test.go:16
FunctionTestUser_SignUp_failsIfUserHasSignedUpAlready
(t *testing.T)
examples/signup/main_test.go:9
FunctionTestValidationError_Merge_mergesOtherErrorTypeUnderKeyAll
(t *testing.T)
validation_error_test.go:22
FunctionTestValidationError_Ok_returnsFalseIfThereAreErrors
(t *testing.T)
validation_error_test.go:15
FunctionTestValidationError_Ok_returnsTrueIfThereAreNoErrors
(t *testing.T)
validation_error_test.go:8
FunctionTestValidationError_Return_returnsNilIfErrorIsOk
(t *testing.T)
validation_error_test.go:34
FunctionTestValidationError_Return_returnsSelfIfErrorIsNotOk
(t *testing.T)
validation_error_test.go:41
MethodUnmarshalText
UnmarshalText accepts data as the string's content and applies and internal sanitization function to data.
values.go:40
MethodUnmarshalText
UnmarshalText returns ErrMalformedIdentifier identifier is data is not a valid identifier.
values.go:101
MethodUnmarshalText
UnmarshalText generates a password from data using bcrypt. It returns ErrEmpty is data is empty.
values.go:161
FunctionUserFromCommand
(params *ess.Command)
examples/blog/main.go:54
MethodWrite
(data []byte)
application_test.go:31
Functionmain
()
examples/blog/main.go:304
Functionmain
()
examples/signup/main.go:91
FunctionnewTestAggregateFromCommand
(command *Command)
test_aggregate.go:15
← previous101–196 of 196, ranked by callers