Documentation
¶
Index ¶
- func GetHostAndPortFromSpecKey(key SpecKey) (host, port string, err error)
- type AddressInfo
- type Config
- type SpecKey
- type Speculator
- func (s *Speculator) ApplyApprovedReview(specKey SpecKey, approvedReview *_spec.ApprovedSpecReview) error
- func (s *Speculator) DiffTelemetry(telemetry *_spec.Telemetry, diffSource _spec.DiffSource) (*_spec.APIDiff, error)
- func (s *Speculator) DumpSpecs()
- func (s *Speculator) EncodeState(filePath string) error
- func (s *Speculator) HasApprovedSpec(key SpecKey) bool
- func (s *Speculator) HasProvidedSpec(key SpecKey) bool
- func (s *Speculator) InitSpec(host, port string) error
- func (s *Speculator) LearnTelemetry(telemetry *_spec.Telemetry) error
- func (s *Speculator) LoadProvidedSpec(key SpecKey, providedSpec []byte, pathToPathID map[string]string) error
- func (s *Speculator) SuggestedReview(specKey SpecKey) (*_spec.SuggestedSpecReview, error)
- func (s *Speculator) UnsetApprovedSpec(key SpecKey) error
- func (s *Speculator) UnsetProvidedSpec(key SpecKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressInfo ¶
func GetAddressInfoFromAddress ¶
func GetAddressInfoFromAddress(address string) (*AddressInfo, error)
type Config ¶
type Config struct {
OperationGeneratorConfig _spec.OperationGeneratorConfig
}
type Speculator ¶
type Speculator struct { Specs map[SpecKey]*_spec.Spec `json:"specs,omitempty"` // contains filtered or unexported fields }
func CreateSpeculator ¶
func CreateSpeculator(config Config) *Speculator
func DecodeState ¶
func DecodeState(filePath string, config Config) (*Speculator, error)
func (*Speculator) ApplyApprovedReview ¶
func (s *Speculator) ApplyApprovedReview(specKey SpecKey, approvedReview *_spec.ApprovedSpecReview) error
func (*Speculator) DiffTelemetry ¶
func (s *Speculator) DiffTelemetry(telemetry *_spec.Telemetry, diffSource _spec.DiffSource) (*_spec.APIDiff, error)
func (*Speculator) DumpSpecs ¶
func (s *Speculator) DumpSpecs()
func (*Speculator) EncodeState ¶
func (s *Speculator) EncodeState(filePath string) error
func (*Speculator) HasApprovedSpec ¶
func (s *Speculator) HasApprovedSpec(key SpecKey) bool
func (*Speculator) HasProvidedSpec ¶
func (s *Speculator) HasProvidedSpec(key SpecKey) bool
func (*Speculator) InitSpec ¶
func (s *Speculator) InitSpec(host, port string) error
func (*Speculator) LearnTelemetry ¶
func (s *Speculator) LearnTelemetry(telemetry *_spec.Telemetry) error
func (*Speculator) LoadProvidedSpec ¶
func (*Speculator) SuggestedReview ¶
func (s *Speculator) SuggestedReview(specKey SpecKey) (*_spec.SuggestedSpecReview, error)
func (*Speculator) UnsetApprovedSpec ¶
func (s *Speculator) UnsetApprovedSpec(key SpecKey) error
func (*Speculator) UnsetProvidedSpec ¶
func (s *Speculator) UnsetProvidedSpec(key SpecKey) error
Click to show internal directories.
Click to hide internal directories.