EventStore / EventStore-Client-Go

Go Client for Event Store version 20 and above.
Apache License 2.0
105 stars 27 forks source link

Missing getter for custom properties on StreamMetadata #178

Closed wiegell closed 5 months ago

wiegell commented 5 months ago

The only way to get customProperties seems to be as marshalled Json. Shouldn't there be a GetCustomProperty or GetCustomProperties method on StreamMetadata too?

type StreamMetadata struct {
    maxCount         []uint64
    maxAge           []time.Duration
    truncateBefore   []uint64
    cacheControl     []time.Duration
    acl              []interface{}
    customProperties map[string]interface{}
}
YoEight commented 5 months ago

@wiegell Thanks for reporting this.

The patch is available on version v4.1.0

wiegell commented 5 months ago

Thanks for the quick resolution!