Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSet ¶
type ClientSet struct {
// contains filtered or unexported fields
}
func NewClientSet ¶
func NewClientSet(primary *ent.Client, opts ...ClientSetOption) *ClientSet
type ClientSetOption ¶
type ClientSetOption func(*ClientSet)
func WithPolicy ¶
func WithPolicy(policy Policy) ClientSetOption
func WithReplicas ¶
func WithReplicas(replicas []*ent.Client) ClientSetOption
type ClientType ¶
type ClientType int
type RandomClientSetPolicy ¶
type RandomClientSetPolicy struct{}
type RoundRobinPolicy ¶
type RoundRobinPolicy struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.