Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
func BearerTokenAuthorizer ¶
func BearerTokenAuthorizer(tokens [][]byte) Authorizer
type Server ¶
type Server struct {
Store queue.Store
Target string
ResolveRoute func(endpoint string) (route string, ok bool)
Authorize Authorizer
ObserveDequeue func(route string, statusCode int, items []queue.Envelope)
ObserveAck func(route string, statusCode int, leaseID string, leaseExpired bool)
ObserveNack func(route string, statusCode int, leaseID string, leaseExpired bool)
ObserveExtend func(route string, statusCode int, leaseID string, extendBy time.Duration, leaseExpired bool)
DefaultLeaseTTL time.Duration
MaxBatch int
MaxLeaseTTL time.Duration
DefaultMaxWait time.Duration
MaxWait time.Duration
}
Click to show internal directories.
Click to hide internal directories.