selector

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CtxHashTag = "ctx_hash_tag"
View Source
const (
	CtxSoftStateTag = "ctx_soft_state_tag"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash struct {
	// contains filtered or unexported fields
}

func (*Hash) Select

func (h *Hash) Select(ctx context.Context, servicePath, serviceMethod string, args interface{}) string

func (*Hash) UpdateServer

func (h *Hash) UpdateServer(servers map[string]string)

type HashNode

type HashNode struct {
	Server string
	Tag    string
}

type SoftState

type SoftState struct {
	// contains filtered or unexported fields
}

func (*SoftState) Select

func (s *SoftState) Select(ctx context.Context, servicePath, serviceMethod string, args interface{}) string

func (*SoftState) UpdateServer

func (s *SoftState) UpdateServer(servers map[string]string)

type SoftStateNode

type SoftStateNode struct {
	Server       string
	Games        []string
	AbandonArray [10]byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL