env

package
v1.2.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocationProvider

type LocationProvider struct {
	*plugin.PluginBase
	// contains filtered or unexported fields
}

LocationProvider 从环境变量获取地域信息

func (*LocationProvider) Destroy

func (p *LocationProvider) Destroy() error

Destroy 销毁插件,可用于释放资源

func (*LocationProvider) GetLocation

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

GetLocation 获取地理位置信息

func (*LocationProvider) Init

func (p *LocationProvider) Init(ctx *plugin.InitContext) error

Init 初始化插件

func (*LocationProvider) Name

func (p *LocationProvider) Name() string

Name 插件名称

func (*LocationProvider) Type

func (p *LocationProvider) Type() common.Type

Type 插件类型

Jump to

Keyboard shortcuts

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