Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACL ¶
type ACL struct {
ID string `json:"id"`
Criterion string `json:"criterion"`
EndpointConfig *EndpointConfig `json:"endpoint"`
Endpoint *Endpoint
}
ACL - Connects to an external endpoint
type Backend ¶
func NewBackend ¶
func NewBackend(name string, serverURL string, options BackendOptions) (*Backend, error)
type BackendOptions ¶
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func NewEndpoint ¶
func NewEndpoint(endpointConfig *EndpointConfig, sharder Sharder) (*Endpoint, error)
type EndpointConfig ¶
type EndpointConfig struct {
Matcher string `json:"matcher"`
ShardExpr string `json:"shard_expr"`
ShardFunc string `json:"shard_func"`
ShardConfig json.RawMessage `json:"shard_config"`
}
EndpointConfig - Defines a config for external service
Click to show internal directories.
Click to hide internal directories.