Documentation
¶
Index ¶
- func DeleteHistoryRecord(stackName string, recordType RecordType) error
- func WriteHistoryRecord(stackName string, recordType RecordType, historyRecord *HistoryRecord) error
- type Api
- type ApiHistoryItem
- type Bucket
- type Dashboard
- type DashboardResponse
- type EventHistoryItem
- type History
- type HistoryRecord
- type Param
- type RecordType
- type RefreshOptions
- type RequestHistory
- type ResponseHistory
- type TriggerType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteHistoryRecord ¶ added in v1.19.0
func DeleteHistoryRecord(stackName string, recordType RecordType) error
func WriteHistoryRecord ¶ added in v1.19.0
func WriteHistoryRecord(stackName string, recordType RecordType, historyRecord *HistoryRecord) error
Types ¶
type ApiHistoryItem ¶ added in v1.19.0
type ApiHistoryItem struct {
Api string `json:"api"`
Request *RequestHistory `json:"request"`
Response *ResponseHistory `json:"response"`
}
type Dashboard ¶ added in v1.18.0
type Dashboard struct {
// contains filtered or unexported fields
}
func (*Dashboard) Refresh ¶ added in v1.18.0
func (d *Dashboard) Refresh(opts *RefreshOptions) error
type DashboardResponse ¶ added in v1.19.0
type DashboardResponse struct {
Apis []*openapi3.T `json:"apis,omitempty"`
Buckets []string `json:"buckets,omitempty"`
Schedules []*codeconfig.TopicResult `json:"schedules,omitempty"`
Topics []*codeconfig.TopicResult `json:"topics,omitempty"`
ProjectName string `json:"projectName,omitempty"`
ApiAddresses map[string]string `json:"apiAddresses,omitempty"`
TriggerAddress string `json:"triggerAddress,omitempty"`
StorageAddress string `json:"storageAddress,omitempty"`
BucketNotifications []*codeconfig.BucketNotification `json:"bucketNotifications,omitempty"`
}
type EventHistoryItem ¶ added in v1.19.0
type EventHistoryItem struct {
Event *codeconfig.TopicResult `json:"event,omitempty"`
Payload string `json:"payload,omitempty"`
}
type History ¶ added in v1.19.0
type History struct {
ScheduleHistory []*HistoryRecord `json:"scheduleHistory,omitempty"`
TopicHistory []*HistoryRecord `json:"topicHistory,omitempty"`
ApiHistory []*HistoryRecord `json:"apiHistory,omitempty"`
}
func ReadAllHistoryRecords ¶ added in v1.19.0
type HistoryRecord ¶ added in v1.19.0
type HistoryRecord struct {
Time int64 `json:"time,omitempty"`
Success bool `json:"success,omitempty"`
EventHistoryItem
ApiHistoryItem
}
func ReadHistoryRecords ¶ added in v1.19.0
func ReadHistoryRecords(stackName string, recordType RecordType) ([]*HistoryRecord, error)
type RecordType ¶ added in v1.19.0
type RecordType string
const ( API RecordType = "apis" TOPIC RecordType = "topics" SCHEDULE RecordType = "schedules" )
type RefreshOptions ¶ added in v1.18.0
type RequestHistory ¶ added in v1.19.0
type RequestHistory struct {
Method string `json:"method"`
Path string `json:"path"`
QueryParams []Param `json:"queryParams"`
PathParams []Param `json:"pathParams"`
Body []byte `json:"body"`
Headers map[string][]string `json:"headers"`
}
Only log what is required from req/resp to avoid massive log files
type ResponseHistory ¶ added in v1.19.0
type TriggerType ¶ added in v1.19.0
type TriggerType string
Click to show internal directories.
Click to hide internal directories.