types

package
v12.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "provider"
)

Variables

View Source
var (
	ErrInvalidMessage = sdkerrors.Register(ModuleName, 101, "invalid message")

	ErrDuplicateProvider = sdkerrors.Register(ModuleName, 201, "duplicate provider")
	ErrProviderNotFound  = sdkerrors.Register(ModuleName, 202, "provider not found")
	ErrUnauthorized      = sdkerrors.Register(ModuleName, 203, "unauthorized")
)
View Source
var (
	ParamsKey = []byte{0x00}

	ProviderKeyPrefix         = []byte{0x10}
	ActiveProviderKeyPrefix   = append(ProviderKeyPrefix, 0x01)
	InactiveProviderKeyPrefix = append(ProviderKeyPrefix, 0x02)
)

Functions

func ActiveProviderKey

func ActiveProviderKey(addr base.ProvAddress) []byte

func InactiveProviderKey

func InactiveProviderKey(addr base.ProvAddress) (v []byte)

func NewErrorDuplicateProvider

func NewErrorDuplicateProvider(addr base.ProvAddress) error

NewErrorDuplicateProvider returns an error indicating that the specified provider already exists.

func NewErrorProviderNotFound

func NewErrorProviderNotFound(addr base.ProvAddress) error

NewErrorProviderNotFound returns an error indicating that the specified provider does not exist.

func NewErrorUnauthorized

func NewErrorUnauthorized(addr string) error

NewErrorUnauthorized returns an error indicating that the specified address is not authorized.

Types

This section is empty.

Directories

Path Synopsis
Package v1 is a reverse proxy.
Package v1 is a reverse proxy.
Package v2 is a reverse proxy.
Package v2 is a reverse proxy.

Jump to

Keyboard shortcuts

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