MCPcopy Create free account

hub / github.com/dhamidi/ess / functions

Functions196 in github.com/dhamidi/ess

↓ 37 callersMethodT
(name string, attributes HTMLAttributes, children ...*HTML)
examples/blog/html.go:64
↓ 34 callersMethodAdd
Add sets the payload for the field name to value.
event.go:46
↓ 29 callersMethodString
String should convert the value to a string representing this value's data.
interfaces.go:45
↓ 24 callersMethodGet
Get returns the field identified by name or nil if the field does not exist.
command.go:192
↓ 20 callersMethodA
(name, value string)
examples/blog/html.go:85
↓ 19 callersMethodAdd
Add records an error for field using desc as the error description.
validation_error.go:28
↓ 19 callersMethodField
Field defines a field with the given name and type. Use this method to define the different parameters of a command.
command.go:105
↓ 19 callersMethodFor
For marks the event as being emitted by source.
event.go:40
↓ 19 callersMethodSet
Set sets the value for the field identified by name. Setting a value using this method parses the string given in value according to the field's type
command.go:211
↓ 18 callersFunctionNewEvent
NewEvent creates a new, empty event of type name.
event.go:32
↓ 17 callersMethodError
Error returns any error encountered or caused by processing the command. If nil is returned, it is safe to assume that the application processed the
command.go:18
↓ 17 callersMethodId
Id returns a string uniquely identifying the aggregate. The aggregate's id is used for routing commands to it and associating emitted events with this
interfaces.go:19
↓ 17 callersMethodText
(text string)
examples/blog/html.go:77
↓ 12 callersMethodSend
Send sends command to the application for processing. Send is not thread safe.
application.go:96
↓ 12 callersFunctionnewTestAggregate
(id string)
test_aggregate.go:19
↓ 11 callersMethodWriteHTML
(w io.Writer, prefix, indent string)
examples/blog/html.go:28
↓ 10 callersFunctionNewHTMLDocument
(title string, body ...*HTML)
examples/blog/html.go:96
↓ 10 callersMethodReturn
Return returns nil if no errors have been recorded with this instance. Otherwise this instance is returned. This method exists to avoid returning a
validation_error.go:67
↓ 9 callersMethodOk
Ok returns true if no errors have been recorded with this instance.
validation_error.go:25
↓ 9 callersMethodPublishEvent
PublishEvent queues event for publishing.
interfaces.go:56
↓ 9 callersMethodToHTML
(submit string)
examples/blog/templates.go:141
↓ 8 callersMethodC
(children ...*HTML)
examples/blog/html.go:72
↓ 8 callersMethodNewCommand
NewCommand constructs a new instance of a command, according to this command definition.
command.go:129
↓ 7 callersMethodFromForm
FromForm sets all of the command's fields with the values found in form.
command.go:225
↓ 7 callersFunctionNewTestApp
()
application_test.go:44
↓ 7 callersFunctionNewValidationError
NewValidationError returns a new, empty validation error.
validation_error.go:18
↓ 7 callersMethodNow
()
interfaces.go:34
↓ 7 callersMethodTarget
Target sets the function to create a new receiver of the right type for this command to constructor. The constructor's task is to return an aggregate
command.go:122
↓ 5 callersMethodAggregateId
AggregateId returns the id of the command's receiver, according to the command's IdField. If the field is not present, it returns the empty string.
command.go:176
↓ 5 callersMethodFill
(params *ess.Command, err error)
examples/blog/templates.go:119
↓ 5 callersFunctionForm
(name, action string, fields ...*HTMLFormField)
examples/blog/templates.go:82
↓ 5 callersFunctionNewEventsInMemory
NewEventsInMemory creates a new instance of this event store holding no events initially.
events_in_memory.go:10
↓ 5 callersMethodParam
(name, value string)
examples/blog/templates.go:114
↓ 5 callersMethodWithProjection
WithProjection registers projection with name at the application.
application.go:75
↓ 4 callersFunctionMethodNotSupported
(w http.ResponseWriter)
examples/blog/main.go:168
↓ 4 callersMethodReplay
Replay replays the events belonging to the stream identified by streamId using receiver. Using "*" as the streamId select all events, regardless of t
interfaces.go:95
↓ 4 callersMethodStore
Store append events to the store in a manner that allows them to be retrieved by Replay. The returned error is implementation defined.
interfaces.go:86
↓ 4 callersFunctionloadCurrentUser
(req *http.Request, sessions SessionStore)
examples/blog/main.go:291
↓ 3 callersMethodById
(id string)
examples/blog/main.go:288
↓ 3 callersMethodFormValue
FromValue returns the string value associated with the form field "field".
interfaces.go:106
↓ 3 callersMethodHandleEvent
(event *Event)
interfaces.go:70
↓ 3 callersFunctionNewErrorResult
NewErrorResult wraps err in a CommandResult.
command.go:28
↓ 3 callersMethodUnmarshalText
(data []byte)
values.go:126
↓ 3 callersMethodWithStore
WithStore sets the application's event store to store. Do not call this method after Init has been called.
application.go:69
↓ 2 callersMethodAction
(action string)
examples/blog/templates.go:109
↓ 2 callersMethodCopy
Copy creates a new instance with the same internal state as this value instance.
interfaces.go:49
↓ 2 callersMethodEvents
Events returns all events stored by this instance.
events_in_memory.go:47
↓ 2 callersMethodInit
Init reconstructs application state from history. Call this method once initially after configuring your application.
application.go:90
↓ 2 callersMethodMerge
Merge records errors from err into this instance. If err is a ValidationError, all recorded errors for all fields from err are merged into this insta
validation_error.go:40
↓ 2 callersFunctionNewEventStoreTest
NewEventStoreTest returns a new test suite using setup as the test setup function. TearDown is set to do nothing.
event_store_test_suite.go:23
↓ 2 callersFunctionNewUser
(username string)
examples/signup/main.go:28
↓ 2 callersFunctionNotFound
(w http.ResponseWriter)
examples/blog/main.go:172
↓ 2 callersMethodOccur
Occur marks the occurrence time of the event according to clock.
event.go:52
↓ 2 callersMethodPersist
Persist marks the time of persisting the event according to clock.
event.go:58
↓ 2 callersFunctionRequireLogin
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:176
↓ 2 callersMethodRun
Run runs all tests.
event_store_test_suite.go:31
↓ 2 callersMethodSignUp
(name, email, password string)
examples/signup/main.go:56
↓ 2 callersMethodUpdate
(event *ess.Event)
examples/blog/all_posts.go:35
↓ 2 callersMethodWithLogger
WithLogger sets the application's logger to logger.
application.go:62
↓ 2 callersFunctionargs
(argv ...string)
examples/blog/main.go:333
↓ 2 callersMethoderr
err adds an error to the list of errors for field
command.go:186
↓ 1 callersMethodAcknowledge
Acknowledge marks the command as having been received by the system. Calling Acknowledge on a command sets the field "now" to the time provided by cl
command.go:244
↓ 1 callersMethodCopy
()
examples/blog/templates.go:98
↓ 1 callersMethodEdit
(title, body, reason, username string)
examples/blog/post.go:52
↓ 1 callersMethodError
Error implements the error interface.
validation_error.go:76
↓ 1 callersMethodExecute
Execute passes this command to its receiver, merging any errors returned into the errors encountered during parameter processing.
command.go:251
↓ 1 callersMethodFailWith
(err error)
test_aggregate.go:23
↓ 1 callersFunctionGenerateSessionId
()
examples/blog/sessions.go:10
↓ 1 callersMethodHandleCommand
HandleCommand tries to process command. If command cannot be processed due to a validation of business rules, a *ValidationError should be returned.
interfaces.go:65
↓ 1 callersMethodHandleEvent
(event *ess.Event)
examples/signup/main.go:84
↓ 1 callersFunctionHandleSignup
(app *ess.Application)
examples/signup/main.go:128
↓ 1 callersMethodHasActiveSession
(session string)
examples/blog/user.go:101
↓ 1 callersFunctionId
Id returns a new empty identifier.
values.go:95
↓ 1 callersFunctionInputField
(label, kind, name, value string, errors []string)
examples/blog/templates.go:42
↓ 1 callersMethodLit
(text string)
examples/blog/html.go:81
↓ 1 callersMethodLogin
(session string, password *ess.BcryptedPassword)
examples/blog/user.go:53
↓ 1 callersMethodLogin
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:116
↓ 1 callersMethodLogout
(session string)
examples/blog/user.go:75
↓ 1 callersMethodLogout
(w http.ResponseWriter, req *http.Request)
examples/blog/main.go:105
↓ 1 callersMethodMatches
Matches returns true if this password matches hashedPassword.
values.go:183
↓ 1 callersFunctionNewAllPostsInMemory
()
examples/blog/all_posts.go:62
↓ 1 callersFunctionNewAllSessionsInMemory
()
examples/blog/sessions.go:28
↓ 1 callersFunctionNewApplication
NewApplication creates a new application instance with reasonable default settings. Events are stored in memory only and informational messages are l
application.go:51
↓ 1 callersFunctionNewCommandDefinition
NewCommandDefinition creates a new command definition using name as the name for the command.
command.go:86
↓ 1 callersFunctionNewEventsOnDisk
NewEventsOnDisk returns an new instance appending events to file and using clock for marking events as persisted.
events_on_disk.go:23
↓ 1 callersFunctionNewLineWriter
(lines *[]string)
application_test.go:24
↓ 1 callersFunctionNewPost
(id string)
examples/blog/post.go:12
↓ 1 callersFunctionNewProjectedPostFromEvent
(event *ess.Event)
examples/blog/all_posts.go:29
↓ 1 callersFunctionNewSuccessResult
NewSuccessResult returns a CommandResult that marks a success for receiver.
command.go:36
↓ 1 callersFunctionNewUser
(id string)
examples/blog/user.go:14
↓ 1 callersFunctionPostOnIndex
(post *ProjectedPost, currentUser *ProjectedUser)
examples/blog/templates.go:242
↓ 1 callersMethodProject
Project passes event to all of the application's projections.
application.go:81
↓ 1 callersMethodPublishWith
PublishWith configures the aggregate to emit events using publisher.
interfaces.go:23
↓ 1 callersMethodReceiver
Receiver returns an instance of the command's receiver, possibly creating the instance.
command.go:198
↓ 1 callersMethodRecent
()
examples/blog/all_posts.go:88
↓ 1 callersFunctionShowAllPostsIndex
(w http.ResponseWriter, currentUser *ProjectedUser, posts []*ProjectedPost)
examples/blog/templates.go:270
↓ 1 callersFunctionShowEditPostForm
(w http.ResponseWriter, params *ess.Command)
examples/blog/templates.go:316
↓ 1 callersFunctionShowEditPostFormError
(w http.ResponseWriter, params *ess.Command, err error)
examples/blog/templates.go:329
↓ 1 callersFunctionShowLoginForm
(w http.ResponseWriter, req *http.Request)
examples/blog/templates.go:227
↓ 1 callersFunctionShowLoginFormError
(w http.ResponseWriter, params *ess.Command, err error)
examples/blog/templates.go:234
next →1–100 of 196, ranked by callers