v8

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPlan        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPlan          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPlan = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPolicy        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPolicy          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPolicy = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Geolocation_name = map[int32]string{
	0:     "GLS",
	1:     "USC",
	2:     "EU",
	4:     "USE",
	8:     "USW",
	16:    "AF",
	32:    "AS",
	64:    "AU",
	65535: "GL",
}
View Source
var Geolocation_value = map[string]int32{
	"GLS": 0,
	"USC": 1,
	"EU":  2,
	"USE": 4,
	"USW": 8,
	"AF":  16,
	"AS":  32,
	"AU":  64,
	"GL":  65535,
}
View Source
var SELECTED_PROVIDERS_MODE_name = map[int32]string{
	0: "ALLOWED",
	1: "MIXED",
	2: "EXCLUSIVE",
	3: "DISABLED",
}
View Source
var SELECTED_PROVIDERS_MODE_value = map[string]int32{
	"ALLOWED":   0,
	"MIXED":     1,
	"EXCLUSIVE": 2,
	"DISABLED":  3,
}

Functions

This section is empty.

Types

type ChainPolicy

type ChainPolicy struct {
	ChainId      string             `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id" mapstructure:"chain_id"`
	Apis         []string           `protobuf:"bytes,2,rep,name=apis,proto3" json:"apis" mapstructure:"apis"`
	Requirements []ChainRequirement `protobuf:"bytes,3,rep,name=requirements,proto3" json:"requirements" mapstructure:"requirements"`
}

func (*ChainPolicy) Descriptor

func (*ChainPolicy) Descriptor() ([]byte, []int)

func (*ChainPolicy) Equal

func (this *ChainPolicy) Equal(that interface{}) bool

func (*ChainPolicy) GetApis

func (m *ChainPolicy) GetApis() []string

func (*ChainPolicy) GetChainId

func (m *ChainPolicy) GetChainId() string

func (*ChainPolicy) GetRequirements

func (m *ChainPolicy) GetRequirements() []ChainRequirement

func (*ChainPolicy) Marshal

func (m *ChainPolicy) Marshal() (dAtA []byte, err error)

func (*ChainPolicy) MarshalTo

func (m *ChainPolicy) MarshalTo(dAtA []byte) (int, error)

func (*ChainPolicy) MarshalToSizedBuffer

func (m *ChainPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainPolicy) ProtoMessage

func (*ChainPolicy) ProtoMessage()

func (*ChainPolicy) Reset

func (m *ChainPolicy) Reset()

func (*ChainPolicy) Size

func (m *ChainPolicy) Size() (n int)

func (*ChainPolicy) String

func (m *ChainPolicy) String() string

func (*ChainPolicy) Unmarshal

func (m *ChainPolicy) Unmarshal(dAtA []byte) error

func (*ChainPolicy) XXX_DiscardUnknown

func (m *ChainPolicy) XXX_DiscardUnknown()

func (*ChainPolicy) XXX_Marshal

func (m *ChainPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainPolicy) XXX_Merge

func (m *ChainPolicy) XXX_Merge(src proto.Message)

func (*ChainPolicy) XXX_Size

func (m *ChainPolicy) XXX_Size() int

func (*ChainPolicy) XXX_Unmarshal

func (m *ChainPolicy) XXX_Unmarshal(b []byte) error

type ChainRequirement

type ChainRequirement struct {
	Collection types.CollectionData `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection" mapstructure:"collection"`
	Extensions []string             `protobuf:"bytes,2,rep,name=extensions,proto3" json:"extensions" mapstructure:"extensions"`
}

func (*ChainRequirement) Descriptor

func (*ChainRequirement) Descriptor() ([]byte, []int)

func (*ChainRequirement) Equal

func (this *ChainRequirement) Equal(that interface{}) bool

func (*ChainRequirement) GetCollection

func (m *ChainRequirement) GetCollection() types.CollectionData

func (*ChainRequirement) GetExtensions

func (m *ChainRequirement) GetExtensions() []string

func (*ChainRequirement) Marshal

func (m *ChainRequirement) Marshal() (dAtA []byte, err error)

func (*ChainRequirement) MarshalTo

func (m *ChainRequirement) MarshalTo(dAtA []byte) (int, error)

func (*ChainRequirement) MarshalToSizedBuffer

func (m *ChainRequirement) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainRequirement) ProtoMessage

func (*ChainRequirement) ProtoMessage()

func (*ChainRequirement) Reset

func (m *ChainRequirement) Reset()

func (*ChainRequirement) Size

func (m *ChainRequirement) Size() (n int)

func (*ChainRequirement) String

func (m *ChainRequirement) String() string

func (*ChainRequirement) Unmarshal

func (m *ChainRequirement) Unmarshal(dAtA []byte) error

func (*ChainRequirement) XXX_DiscardUnknown

func (m *ChainRequirement) XXX_DiscardUnknown()

func (*ChainRequirement) XXX_Marshal

func (m *ChainRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainRequirement) XXX_Merge

func (m *ChainRequirement) XXX_Merge(src proto.Message)

func (*ChainRequirement) XXX_Size

func (m *ChainRequirement) XXX_Size() int

func (*ChainRequirement) XXX_Unmarshal

func (m *ChainRequirement) XXX_Unmarshal(b []byte) error

type Geolocation

type Geolocation int32

The geolocation values are encoded as bits in a bitmask, with two special values: GLS is set to 0 so it will be restrictive with the AND operator. GL is set to -1 so it will be permissive with the AND operator.

const (
	Geolocation_GLS Geolocation = 0
	Geolocation_USC Geolocation = 1
	Geolocation_EU  Geolocation = 2
	Geolocation_USE Geolocation = 4
	Geolocation_USW Geolocation = 8
	Geolocation_AF  Geolocation = 16
	Geolocation_AS  Geolocation = 32
	Geolocation_AU  Geolocation = 64
	Geolocation_GL  Geolocation = 65535
)

func (Geolocation) EnumDescriptor

func (Geolocation) EnumDescriptor() ([]byte, []int)

func (Geolocation) String

func (x Geolocation) String() string

type Plan

type Plan struct {
	Index                    string     `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Block                    uint64     `protobuf:"varint,3,opt,name=block,proto3" json:"block,omitempty"`
	Price                    types.Coin `protobuf:"bytes,4,opt,name=price,proto3" json:"price"`
	AllowOveruse             bool       `protobuf:"varint,8,opt,name=allow_overuse,json=allowOveruse,proto3" json:"allow_overuse,omitempty"`
	OveruseRate              uint64     `protobuf:"varint,9,opt,name=overuse_rate,json=overuseRate,proto3" json:"overuse_rate,omitempty"`
	Description              string     `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"`
	Type                     string     `protobuf:"bytes,12,opt,name=type,proto3" json:"type,omitempty"`
	AnnualDiscountPercentage uint64     `` /* 137-byte string literal not displayed */
	PlanPolicy               Policy     `protobuf:"bytes,14,opt,name=plan_policy,json=planPolicy,proto3" json:"plan_policy"`
}

func (*Plan) Descriptor

func (*Plan) Descriptor() ([]byte, []int)

func (*Plan) Equal

func (this *Plan) Equal(that interface{}) bool

func (*Plan) GetAllowOveruse

func (m *Plan) GetAllowOveruse() bool

func (*Plan) GetAnnualDiscountPercentage

func (m *Plan) GetAnnualDiscountPercentage() uint64

func (*Plan) GetBlock

func (m *Plan) GetBlock() uint64

func (*Plan) GetDescription

func (m *Plan) GetDescription() string

func (*Plan) GetIndex

func (m *Plan) GetIndex() string

func (*Plan) GetOveruseRate

func (m *Plan) GetOveruseRate() uint64

func (*Plan) GetPlanPolicy

func (m *Plan) GetPlanPolicy() Policy

func (*Plan) GetPrice

func (m *Plan) GetPrice() types.Coin

func (*Plan) GetType

func (m *Plan) GetType() string

func (*Plan) Marshal

func (m *Plan) Marshal() (dAtA []byte, err error)

func (*Plan) MarshalTo

func (m *Plan) MarshalTo(dAtA []byte) (int, error)

func (*Plan) MarshalToSizedBuffer

func (m *Plan) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Plan) ProtoMessage

func (*Plan) ProtoMessage()

func (*Plan) Reset

func (m *Plan) Reset()

func (*Plan) Size

func (m *Plan) Size() (n int)

func (*Plan) String

func (m *Plan) String() string

func (*Plan) Unmarshal

func (m *Plan) Unmarshal(dAtA []byte) error

func (*Plan) XXX_DiscardUnknown

func (m *Plan) XXX_DiscardUnknown()

func (*Plan) XXX_Marshal

func (m *Plan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Plan) XXX_Merge

func (m *Plan) XXX_Merge(src proto.Message)

func (*Plan) XXX_Size

func (m *Plan) XXX_Size() int

func (*Plan) XXX_Unmarshal

func (m *Plan) XXX_Unmarshal(b []byte) error

type Policy

type Policy struct {
	ChainPolicies         []ChainPolicy           `protobuf:"bytes,1,rep,name=chain_policies,json=chainPolicies,proto3" json:"chain_policies" mapstructure:"chain_policies"`
	GeolocationProfile    int32                   `` /* 141-byte string literal not displayed */
	TotalCuLimit          uint64                  `protobuf:"varint,3,opt,name=total_cu_limit,json=totalCuLimit,proto3" json:"total_cu_limit" mapstructure:"total_cu_limit"`
	EpochCuLimit          uint64                  `protobuf:"varint,4,opt,name=epoch_cu_limit,json=epochCuLimit,proto3" json:"epoch_cu_limit" mapstructure:"epoch_cu_limit"`
	MaxProvidersToPair    uint64                  `` /* 147-byte string literal not displayed */
	SelectedProvidersMode SELECTED_PROVIDERS_MODE `` /* 204-byte string literal not displayed */
	SelectedProviders     []string                `` /* 136-byte string literal not displayed */
}

protobuf expected in YAML format: used "moretags" to simplify parsing

func (*Policy) Descriptor

func (*Policy) Descriptor() ([]byte, []int)

func (*Policy) Equal

func (this *Policy) Equal(that interface{}) bool

func (*Policy) GetChainPolicies

func (m *Policy) GetChainPolicies() []ChainPolicy

func (*Policy) GetEpochCuLimit

func (m *Policy) GetEpochCuLimit() uint64

func (*Policy) GetGeolocationProfile

func (m *Policy) GetGeolocationProfile() int32

func (*Policy) GetMaxProvidersToPair

func (m *Policy) GetMaxProvidersToPair() uint64

func (*Policy) GetSelectedProviders

func (m *Policy) GetSelectedProviders() []string

func (*Policy) GetSelectedProvidersMode

func (m *Policy) GetSelectedProvidersMode() SELECTED_PROVIDERS_MODE

func (*Policy) GetTotalCuLimit

func (m *Policy) GetTotalCuLimit() uint64

func (*Policy) Marshal

func (m *Policy) Marshal() (dAtA []byte, err error)

func (*Policy) MarshalTo

func (m *Policy) MarshalTo(dAtA []byte) (int, error)

func (*Policy) MarshalToSizedBuffer

func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) Size

func (m *Policy) Size() (n int)

func (*Policy) String

func (m *Policy) String() string

func (*Policy) Unmarshal

func (m *Policy) Unmarshal(dAtA []byte) error

func (*Policy) XXX_DiscardUnknown

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal

func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Policy) XXX_Merge

func (m *Policy) XXX_Merge(src proto.Message)

func (*Policy) XXX_Size

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal

func (m *Policy) XXX_Unmarshal(b []byte) error

type SELECTED_PROVIDERS_MODE

type SELECTED_PROVIDERS_MODE int32

the enum below determines the pairing algorithm's behaviour with the selected providers feature

const (
	SELECTED_PROVIDERS_MODE_ALLOWED   SELECTED_PROVIDERS_MODE = 0
	SELECTED_PROVIDERS_MODE_MIXED     SELECTED_PROVIDERS_MODE = 1
	SELECTED_PROVIDERS_MODE_EXCLUSIVE SELECTED_PROVIDERS_MODE = 2
	SELECTED_PROVIDERS_MODE_DISABLED  SELECTED_PROVIDERS_MODE = 3
)

func (SELECTED_PROVIDERS_MODE) EnumDescriptor

func (SELECTED_PROVIDERS_MODE) EnumDescriptor() ([]byte, []int)

func (SELECTED_PROVIDERS_MODE) String

func (x SELECTED_PROVIDERS_MODE) String() string

Jump to

Keyboard shortcuts

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