Documentation ¶
Index ¶
- Constants
- func CreateRequestId() string
- func GetBoolEnvar(key string, defaultValue bool) (bool, error)
- func GetHttpClient() (*http.Client, error)
- func GetHttpClientFromTLSOptions(tlsOptions *TLSOptions) *http.Client
- func GetIntEnvar(key string, defaultValue int) (int, error)
- func GetKafkaConsumerName(modelName, prefix string, maxConsumers int) string
- func GetOrignalModelNameAndVersion(versionedModel string) (string, uint32, error)
- func GetPinnedModelVersion() uint32
- func GetVersionedModelName(model string, version uint32) string
- func Hash(s string) (uint32, error)
- func XXHash(key string) string
- type LoadBalancer
- type RingLoadBalancer
- type TLSOptions
Constants ¶
View Source
const ( GrpcRetryBackoffMillisecs = 100 EnvoyUpdateDefaultBatchWaitMillis = 250 * time.Millisecond )
View Source
const RequestIdHeader = "x-request-id"
View Source
const RequestIdHeaderCanonical = "X-Request-Id"
Variables ¶
This section is empty.
Functions ¶
func CreateRequestId ¶
func CreateRequestId() string
func GetHttpClient ¶
func GetHttpClientFromTLSOptions ¶
func GetHttpClientFromTLSOptions(tlsOptions *TLSOptions) *http.Client
func GetKafkaConsumerName ¶
func GetPinnedModelVersion ¶
func GetPinnedModelVersion() uint32
func GetVersionedModelName ¶
Types ¶
type LoadBalancer ¶
type RingLoadBalancer ¶
type RingLoadBalancer struct {
// contains filtered or unexported fields
}
func NewRingLoadBalancer ¶
func NewRingLoadBalancer(replicationFactor int) *RingLoadBalancer
func (*RingLoadBalancer) AddServer ¶
func (lb *RingLoadBalancer) AddServer(serverName string)
func (*RingLoadBalancer) GetServersForKey ¶
func (lb *RingLoadBalancer) GetServersForKey(key string) []string
func (*RingLoadBalancer) RemoveServer ¶
func (lb *RingLoadBalancer) RemoveServer(serverName string)
type TLSOptions ¶
type TLSOptions struct { TLS bool Cert *seldontls.CertificateStore }
func CreateTLSClientOptions ¶
func CreateTLSClientOptions() (*TLSOptions, error)
func CreateUpstreamDataplaneServerTLSOptions ¶
func CreateUpstreamDataplaneServerTLSOptions() (TLSOptions, error)
Click to show internal directories.
Click to hide internal directories.