Documentation ¶
Index ¶
- Constants
- Variables
- type Budgerigar
- func (b *Budgerigar) All() []*Stub
- func (b *Budgerigar) Clear()
- func (b *Budgerigar) DeleteByID(ids ...uuid.UUID) int
- func (b *Budgerigar) FindBy(service, method string) ([]*Stub, error)
- func (b *Budgerigar) FindByID(id uuid.UUID) *Stub
- func (b *Budgerigar) FindByQuery(query Query) (*Result, error)
- func (b *Budgerigar) PutMany(values ...*Stub) []uuid.UUID
- func (b *Budgerigar) Unused() []*Stub
- func (b *Budgerigar) Used() []*Stub
- type InputData
- type InputHeader
- type Output
- type Query
- type Result
- type Stub
- type Value
Constants ¶
View Source
const (
MethodTitle features.Flag = iota
)
View Source
const (
RequestInternalFlag features.Flag = iota
)
Variables ¶
View Source
var ( ErrServiceNotFound = errors.New("service not found") ErrMethodNotFound = errors.New("method not found") ErrStubNotFound = errors.New("stub not found") )
View Source
var ( ErrLeftNotFound = errors.New("left not found") ErrRightNotFound = errors.New("right not found") )
Functions ¶
This section is empty.
Types ¶
type Budgerigar ¶
type Budgerigar struct {
// contains filtered or unexported fields
}
func NewBudgerigar ¶
func NewBudgerigar(toggles features.Toggles) *Budgerigar
func (*Budgerigar) All ¶
func (b *Budgerigar) All() []*Stub
func (*Budgerigar) Clear ¶
func (b *Budgerigar) Clear()
func (*Budgerigar) DeleteByID ¶
func (b *Budgerigar) DeleteByID(ids ...uuid.UUID) int
func (*Budgerigar) FindByQuery ¶
func (b *Budgerigar) FindByQuery(query Query) (*Result, error)
func (*Budgerigar) Unused ¶
func (b *Budgerigar) Unused() []*Stub
func (*Budgerigar) Used ¶
func (b *Budgerigar) Used() []*Stub
type InputData ¶
type InputData struct { IgnoreArrayOrder bool `json:"ignoreArrayOrder,omitempty"` Equals map[string]interface{} `json:"equals"` Contains map[string]interface{} `json:"contains"` Matches map[string]interface{} `json:"matches"` }
func (InputData) GetContains ¶
func (InputData) GetMatches ¶
type InputHeader ¶
type InputHeader struct { Equals map[string]interface{} `json:"equals"` Contains map[string]interface{} `json:"contains"` Matches map[string]interface{} `json:"matches"` }
func (InputHeader) GetContains ¶
func (i InputHeader) GetContains() map[string]interface{}
func (InputHeader) GetEquals ¶
func (i InputHeader) GetEquals() map[string]interface{}
func (InputHeader) GetMatches ¶
func (i InputHeader) GetMatches() map[string]interface{}
func (InputHeader) Len ¶
func (i InputHeader) Len() int
type Query ¶
type Query struct { ID *uuid.UUID `json:"id,omitempty"` Service string `json:"service"` Method string `json:"method"` Headers map[string]interface{} `json:"headers"` Data map[string]interface{} `json:"data"` // contains filtered or unexported fields }
func (Query) RequestInternal ¶
Click to show internal directories.
Click to hide internal directories.