Documentation
¶
Overview ¶
Package examples provides various examples using the coherence-go-client.
Directories
¶
Path | Synopsis |
---|---|
Package main shows aggregation examples using a NamedMap with key of int and value of Person struct.
|
Package main shows aggregation examples using a NamedMap with key of int and value of Person struct. |
basic
|
|
contains
Package main shows how to use ContainsKey, ContainsValue and ContainsEntry against a NamedCache.
|
Package main shows how to use ContainsKey, ContainsValue and ContainsEntry against a NamedCache. |
crud
Package main shows how to carry out basic operations against a NamedMap with primitive types.
|
Package main shows how to carry out basic operations against a NamedMap with primitive types. |
expiry
Package main shows how to put entries that expire in a NamedCache.
|
Package main shows how to put entries that expire in a NamedCache. |
expiry_cache
Package main shows how to put entries that expire in a NamedCache using the coherence.WithExpiry option.
|
Package main shows how to put entries that expire in a NamedCache using the coherence.WithExpiry option. |
near_cache/high_units
Package main shows how to use a near cache with a NamedMap or NamedCache with high units of 1000.
|
Package main shows how to use a near cache with a NamedMap or NamedCache with high units of 1000. |
near_cache/memory
Package main shows how to use a near cache with a NamedMap or NamedCache with high units memory of 10k.
|
Package main shows how to use a near cache with a NamedMap or NamedCache with high units memory of 10k. |
near_cache/ttl
Package main shows how to use a near cache with a NamedMap or NamedCache with an expiry of 10 seconds.
|
Package main shows how to use a near cache with a NamedMap or NamedCache with an expiry of 10 seconds. |
struct
Package main shows how to carry out basic operations against a NamedMap with a key of int and value of Person struct.
|
Package main shows how to carry out basic operations against a NamedMap with a key of int and value of Person struct. |
struct_keys
Package main shows how to carry out basic operations against a NamedMap where a key and value are structs.
|
Package main shows how to carry out basic operations against a NamedMap where a key and value are structs. |
Package events shows examples using events.
|
Package events shows examples using events. |
cache
Package cache shows examples using MapEvents.
|
Package cache shows examples using MapEvents. |
cache/all
Package main shows how to listen for all events on a NamedMap or NamedCache.
|
Package main shows how to listen for all events on a NamedMap or NamedCache. |
cache/delete
Package main shows how to listen for delete events on a NamedMap or NamedCache.
|
Package main shows how to listen for delete events on a NamedMap or NamedCache. |
cache/filters
Package main shows how to listen for all events on a NamedMap or NamedCache using filters.
|
Package main shows how to listen for all events on a NamedMap or NamedCache using filters. |
cache/insert
Package main shows how to listen for insert events on a NamedMap or NamedCache.
|
Package main shows how to listen for insert events on a NamedMap or NamedCache. |
cache/key
Package main shows how to listen for events on a NamedMap or NamedCache for a specific key.
|
Package main shows how to listen for events on a NamedMap or NamedCache for a specific key. |
cache/people_insert
Package main inserts entries into a people NamedMap insert PutAll().
|
Package main inserts entries into a people NamedMap insert PutAll(). |
cache/people_listen
Package main listens for all events on a NamedMap or NamedCache.
|
Package main listens for all events on a NamedMap or NamedCache. |
cache/update
Package main shows how to listen for update events on a NamedMap or NamedCache.
|
Package main shows how to listen for update events on a NamedMap or NamedCache. |
lifecycle/all
Package main shows how to listen for all lifecycle events on a NamedMap or NamedCache.
|
Package main shows how to listen for all lifecycle events on a NamedMap or NamedCache. |
lifecycle/destroyed
Package main shows how to listen for destroyed events on a NamedMap or NamedCache.
|
Package main shows how to listen for destroyed events on a NamedMap or NamedCache. |
lifecycle/released
Package main shows how to listen for released events on a NamedMap or NamedCache.
|
Package main shows how to listen for released events on a NamedMap or NamedCache. |
lifecycle/truncated
Package main shows how to listen for truncated events on a NamedMap or NamedCache.
|
Package main shows how to listen for truncated events on a NamedMap or NamedCache. |
session/all
Package main shows how to listen for all session events on a NamedMap or NamedCache.
|
Package main shows how to listen for all session events on a NamedMap or NamedCache. |
Package main shows examples using indexes.
|
Package main shows examples using indexes. |
processors
|
|
blind
Package main shows how to run processors against a NamedMap or NamedCache using the *Blind utilities methods.
|
Package main shows how to run processors against a NamedMap or NamedCache using the *Blind utilities methods. |
standard
Package main shows how to run processors against a NamedMap or NamedCache.
|
Package main shows how to run processors against a NamedMap or NamedCache. |
Package main shows how to run open-ended queries against a NamedMap or NamedCache using keys.
|
Package main shows how to run open-ended queries against a NamedMap or NamedCache using keys. |
filters
Package main shows how to run queries against a NamedMap or NamedCache using filters.
|
Package main shows how to run queries against a NamedMap or NamedCache using filters. |
keys
Package main shows how to run queries against a NamedMap or NamedCache using keys.
|
Package main shows how to run queries against a NamedMap or NamedCache using keys. |
Package main shows examples using queues.
|
Package main shows examples using queues. |
blocking/processor
Package main shows how to use a blocking queue.
|
Package main shows how to use a blocking queue. |
blocking/publisher
Package main shows how to use a blocking queue.
|
Package main shows how to use a blocking queue. |
blocking/subscriber
Package main shows how to use a blocking queue.
|
Package main shows how to use a blocking queue. |
standard
Package main shows how to use queues.
|
Package main shows how to use queues. |
Package main starts a listener on port localhost:17268 which provides a basic REST API providing POST, GET, PUT and DELETE operations against a NamedMap.
|
Package main starts a listener on port localhost:17268 which provides a basic REST API providing POST, GET, PUT and DELETE operations against a NamedMap. |
Click to show internal directories.
Click to hide internal directories.