Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chop-dbhi/eda
/ functions
Functions
82 in github.com/chop-dbhi/eda
⨍
Functions
82
◇
Types & classes
26
↓ 17 callers
Method
Close
Close closes the connection.
conn.go:71
↓ 9 callers
Method
Printf
(f string, v ...interface{})
stan.go:264
↓ 8 callers
Method
Decode
Decodes the underlying bytes into the passed value pointer.
encode.go:154
↓ 6 callers
Method
String
()
internal/pb/event.pb.go:62
↓ 6 callers
Method
Subscribe
Subscribe creates a subscription to the stream and associates the handler.
conn.go:68
↓ 5 callers
Method
Encode
Encode encodes the underlying type into bytes.
encode.go:157
↓ 5 callers
Method
Publish
Publish publishes an event to the specified stream. It returns the ID of the event.
conn.go:65
↓ 4 callers
Method
Decode
(v interface{})
encode.go:186
↓ 4 callers
Method
Type
Type returns the encoding type used to encode the data to bytes.
encode.go:151
↓ 2 callers
Method
Unsubscribe
Unsubscribe closes the subscription and resets the offset.
conn.go:76
↓ 1 callers
Method
AddTestRecord
(t time.Time, patient, test string, result int)
examples/aggregated-state/consumer/main.go:24
↓ 1 callers
Method
AddVisit
(t time.Time, patient string, visit time.Time)
examples/aggregated-state/consumer/main.go:61
↓ 1 callers
Method
Apply
(opts ...ConnectOption)
stan.go:271
↓ 1 callers
Function
Bytes
Bytes returns Data that encodes and decodes the raw bytes.
encode.go:32
↓ 1 callers
Function
Connect
Connect establishes a connection to the streaming backend.
stan.go:286
↓ 1 callers
Function
JSON
JSON returns Data that encodes and decodes the JSON-encodable value.
encode.go:50
↓ 1 callers
Function
Proto
Proto returns Data that encodes and decodes the proto message.
encode.go:59
↓ 1 callers
Function
handle
(ctx context.Context, evt *eda.Event)
examples/stdout/main.go:15
↓ 1 callers
Function
randomEvent
()
examples/aggregated-state/producer-test-events/main.go:46
↓ 1 callers
Function
randomEvent
()
examples/aggregated-state/producer-visit-events/main.go:31
↓ 1 callers
Function
resetDurable
resetDurable resets a durable subscription by name.
stan.go:19
↓ 1 callers
Function
run
()
examples/stdout/main.go:54
↓ 1 callers
Function
run
()
examples/neo4j-causal-graph/main.go:50
↓ 1 callers
Function
run
()
examples/clock/main.go:20
↓ 1 callers
Function
run
()
examples/aggregated-state/producer-test-events/main.go:64
↓ 1 callers
Function
run
()
examples/aggregated-state/producer-visit-events/main.go:46
↓ 1 callers
Function
run
()
examples/aggregated-state/consumer/main.go:117
Method
Close
Close closes the subscription and retains the offset.
conn.go:79
Method
Close
()
stan.go:38
Method
Close
Close the underlying connection to the stream backend.
stan.go:58
Method
Decode
(b []byte, v interface{})
encode.go:28
Method
Decode
([]byte, interface{})
encode.go:77
Method
Decode
(b []byte, v interface{})
encode.go:91
Method
Decode
(b []byte, v interface{})
encode.go:110
Method
Decode
(b []byte, v interface{})
encode.go:125
Method
Decode
(b []byte, v interface{})
encode.go:139
Method
Descriptor
()
internal/pb/event.pb.go:64
Method
Encode
(v interface{})
encode.go:27
Method
Encode
(interface{})
encode.go:73
Method
Encode
(v interface{})
encode.go:83
Method
Encode
(v interface{})
encode.go:102
Method
Encode
(v interface{})
encode.go:121
Method
Encode
(v interface{})
encode.go:131
Method
Encode
Encode "re-encodes" the bytes without copying.
encode.go:174
Method
GetAckTime
()
internal/pb/event.pb.go:80
Method
GetAggregate
()
internal/pb/event.pb.go:136
Method
GetCause
()
internal/pb/event.pb.go:94
Method
GetClient
()
internal/pb/event.pb.go:101
Method
GetData
()
internal/pb/event.pb.go:122
Method
GetEncoding
()
internal/pb/event.pb.go:115
Method
GetId
()
internal/pb/event.pb.go:66
Method
GetMeta
()
internal/pb/event.pb.go:129
Method
GetSchema
()
internal/pb/event.pb.go:108
Method
GetTime
()
internal/pb/event.pb.go:73
Method
GetType
()
internal/pb/event.pb.go:87
Method
Is
IsType returns true if the event is one of the passed types.
conn.go:49
Method
Print
(v ...interface{})
stan.go:263
Method
ProtoMessage
()
internal/pb/event.pb.go:63
Method
Publish
(stream string, evt *Event)
stan.go:69
Method
Reset
()
internal/pb/event.pb.go:61
Function
String
String returns Data that encodes and decodes a string.
encode.go:41
Method
Subscribe
(stream string, handle Handler, opts *SubscriptionOptions)
stan.go:122
Function
TestBytesDecodable
(t *testing.T)
encode_test.go:12
Function
TestBytesEncodable
(t *testing.T)
encode_test.go:95
Function
TestJSONDecodable
(t *testing.T)
encode_test.go:48
Function
TestJSONEncodable
(t *testing.T)
encode_test.go:120
Function
TestProtoDecodable
(t *testing.T)
encode_test.go:71
Function
TestProtoEncodable
(t *testing.T)
encode_test.go:144
Function
TestStringDecodable
(t *testing.T)
encode_test.go:30
Function
TestSubscribe
(t *testing.T)
stan_test.go:23
Method
Type
()
encode.go:69
Method
Type
()
encode.go:169
Method
Unsubscribe
()
stan.go:42
Function
WithLogger
(l Logger)
stan.go:279
Function
init
()
stan_test.go:16
Function
init
()
internal/pb/event.pb.go:143
Function
main
()
examples/stdout/main.go:48
Function
main
()
examples/neo4j-causal-graph/main.go:44
Function
main
()
examples/clock/main.go:14
Function
main
()
examples/aggregated-state/producer-test-events/main.go:58
Function
main
()
examples/aggregated-state/producer-visit-events/main.go:40
Function
main
()
examples/aggregated-state/consumer/main.go:111