Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulStore ¶
type ConsulStore struct {
// contains filtered or unexported fields
}
ConsulStore is responsible for storage and retrieval of AuditLog JSON objects. It operates a little differently than the other consul store types in this project because the creation of an audit record is always expected to be a part of a transaction. As a result, it doesn't actually need access to a consul client to create records, it will simply save them to a transaction object.
func NewConsulStore ¶
func NewConsulStore(consulKV ConsulKV) ConsulStore
func (ConsulStore) Create ¶
func (ConsulStore) Create( ctx context.Context, eventType audit.EventType, eventDetails json.RawMessage, ) error
Click to show internal directories.
Click to hide internal directories.