From 550efab17d3cab06f9ff2d732e6681885e4f1ff6 Mon Sep 17 00:00:00 2001 From: akeemphilbert Date: Fri, 16 Aug 2024 09:25:36 -0400 Subject: [PATCH] feature: Implemented more resource methods --- rest/event.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/rest/event.go b/rest/event.go index 098aff65..29c8964a 100644 --- a/rest/event.go +++ b/rest/event.go @@ -55,18 +55,15 @@ func (e *Event) Persist() { } func (e *Event) GetType() string { - //TODO implement me - panic("implement me") + return e.Type } func (e *Event) GetSequenceNo() int64 { - //TODO implement me - panic("implement me") + return e.Meta.SequenceNo } func (e *Event) GetID() string { - //TODO implement me - panic("implement me") + return e.ID } func (e *Event) FromBytes(schema *openapi3.T, data []byte) (Resource, error) {