Documentation
¶
Overview ¶
Package scan manages API schema scanning and caching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
APIID string `json:"apiId"`
APIName string `json:"apiName"`
APIType string `json:"apiType"` // "list" or "object"
Fields []Field `json:"fields"`
}
API represents a scanned API endpoint.
func (*API) FieldNames ¶
FieldNames returns field IDs for an API.
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache manages scan result storage.
func NewCacheWithDir ¶
NewCacheWithDir creates a cache in a custom directory (for testing).
type Field ¶
type Field struct {
FieldID string `json:"fieldId"`
Name string `json:"name"`
Kind string `json:"kind"`
Required bool `json:"required"`
}
Field represents a field in an API schema.
type Result ¶
type Result struct {
ServiceID string `json:"serviceId"`
ScannedAt time.Time `json:"scannedAt"`
APIs []API `json:"apis"`
Hash string `json:"hash"`
}
Result holds the complete scan output for a service.
func (*Result) EndpointNames ¶
EndpointNames returns all endpoint names.
func (*Result) ObjectCount ¶
ObjectCount returns the number of object-type APIs.
Click to show internal directories.
Click to hide internal directories.