location

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName string = "chain"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	plugin.Plugin

	// GetLocation 获取实例地理位置信息
	GetLocation() (*model.Location, error)
}

Provider Location 实例地址位置获取插件

type Proxy

type Proxy struct {
	Provider
	// contains filtered or unexported fields
}

func (*Proxy) GetLocation

func (p *Proxy) GetLocation() (*model.Location, error)

GetLocation 获取实例地理位置信息

func (*Proxy) SetRealPlugin

func (p *Proxy) SetRealPlugin(plug plugin.Plugin, engine model.Engine)

SetRealPlugin 设置

Jump to

Keyboard shortcuts

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