Uses an interface instead of a struct now

This commit is contained in:
2022-03-07 16:46:17 -08:00
parent ca6ba89bce
commit 14aa89a047
4 changed files with 64 additions and 31 deletions

View File

@@ -2,8 +2,8 @@ package msp
import "time"
type Period struct {
StartTime time.Time `json:"startTime"`
EndTime time.Time `json:"endTime"`
Identifier string `json:"identifier"`
type Period interface {
GetStartTime() time.Time
GetEndTime() time.Time
GetIdentifier() string
}