web

package
v0.0.0-...-26b160e Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

@Time : 2019/4/19 16:24 @Author : kenny zhu @File : options.go @Software: GoLand @Others:

@Time : 2019/4/19 16:28 @Author : kenny zhu @File : roundShardTripper.go @Software: GoLand @Others:

@Time : 2019/4/19 16:23 @Author : kenny zhu @File : web.go @Software: GoLand @Others:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceNodeByIp

func GetServiceNodeByIp(srvName string, ip string) (recordTopics string, audioTopics string)

get the destination topics

Types

type Option

type Option func(*Options)

func WithDestination

func WithDestination(d string) Option

func WithRegistry

func WithRegistry(r registry.Registry) Option

func WithRouteTag

func WithRouteTag(d string) Option

func WithSelector

func WithSelector(s selector.Strategy) Option

type Options

type Options struct {
	Registry    registry.Registry
	Selector    selector.Strategy
	Destination string
	RouteTag    string

	// Other options for implementations can be stored in a context. like selector_ttl.
	Context context.Context
}

Jump to

Keyboard shortcuts

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