Skip to content

Commit

Permalink
Adjustments based on code review
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Sep 27, 2024
1 parent 9442bf4 commit 230da60
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions servicedef/sdk_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,9 @@ type SDKConfigDataSystem struct {
}

type SDKConfigDataSystemDataSource struct {
Type string `json:"type"`
DataSystemDataSourceConfig
}

type DataSystemDataSourceConfig interface{}

type DataSystemStreamingDataSourceConfig struct {
SDKConfigStreamingParams
}

type DataSystemPollingDataSourceConfig struct {
SDKConfigPollingParams
Type string `json:"type"`
Streaming o.Maybe[SDKConfigStreamingParams] `json:"streaming,omitempty"`
Polling o.Maybe[SDKConfigPollingParams] `json:"polling,omitempty"`
}

type SDKConfigDataSystemPersistence struct {
Expand All @@ -135,9 +126,9 @@ type SDKConfigDataSystemPersistence struct {
type SDKConfigDataSystemPersistenceType string

const (
Redis SDKConfigDataSystemPersistenceType = "redis"
DynamoDB SDKConfigDataSystemPersistenceType = "dynamodb"
Consul SDKConfigDataSystemPersistenceType = "consul"
Redis = SDKConfigDataSystemPersistenceType("redis")
DynamoDB = SDKConfigDataSystemPersistenceType("dynamodb")
Consul = SDKConfigDataSystemPersistenceType("consul")
)

type SDKConfigDataSystemPersistenceStore struct {
Expand All @@ -154,6 +145,6 @@ const (
)

type SDKConfigDataSystemPersistenceCache struct {
Mode string `json:"mode"`
TTL int `json:"ttl"` // This value is only valid when the Mode is set to TTL. It must be a positive integer.
Mode string `json:"mode"`
TTL o.Maybe[int] `json:"ttl,omitempty"` // This value is only valid when the Mode is set to TTL. It must be a positive integer.
}

0 comments on commit 230da60

Please sign in to comment.