Documentation ¶
Index ¶
- Variables
- type ChainPolicy
- func (*ChainPolicy) Descriptor() ([]byte, []int)
- func (this *ChainPolicy) Equal(that interface{}) bool
- func (m *ChainPolicy) GetApis() []string
- func (m *ChainPolicy) GetChainId() string
- func (m *ChainPolicy) GetRequirements() []ChainRequirement
- func (m *ChainPolicy) Marshal() (dAtA []byte, err error)
- func (m *ChainPolicy) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainPolicy) ProtoMessage()
- func (m *ChainPolicy) Reset()
- func (m *ChainPolicy) Size() (n int)
- func (m *ChainPolicy) String() string
- func (m *ChainPolicy) Unmarshal(dAtA []byte) error
- func (m *ChainPolicy) XXX_DiscardUnknown()
- func (m *ChainPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainPolicy) XXX_Merge(src proto.Message)
- func (m *ChainPolicy) XXX_Size() int
- func (m *ChainPolicy) XXX_Unmarshal(b []byte) error
- type ChainRequirement
- func (*ChainRequirement) Descriptor() ([]byte, []int)
- func (this *ChainRequirement) Equal(that interface{}) bool
- func (m *ChainRequirement) GetCollection() types.CollectionData
- func (m *ChainRequirement) GetExtensions() []string
- func (m *ChainRequirement) Marshal() (dAtA []byte, err error)
- func (m *ChainRequirement) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainRequirement) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainRequirement) ProtoMessage()
- func (m *ChainRequirement) Reset()
- func (m *ChainRequirement) Size() (n int)
- func (m *ChainRequirement) String() string
- func (m *ChainRequirement) Unmarshal(dAtA []byte) error
- func (m *ChainRequirement) XXX_DiscardUnknown()
- func (m *ChainRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainRequirement) XXX_Merge(src proto.Message)
- func (m *ChainRequirement) XXX_Size() int
- func (m *ChainRequirement) XXX_Unmarshal(b []byte) error
- type Geolocation
- type Plan
- func (*Plan) Descriptor() ([]byte, []int)
- func (this *Plan) Equal(that interface{}) bool
- func (m *Plan) GetAllowOveruse() bool
- func (m *Plan) GetAnnualDiscountPercentage() uint64
- func (m *Plan) GetBlock() uint64
- func (m *Plan) GetDescription() string
- func (m *Plan) GetIndex() string
- func (m *Plan) GetOveruseRate() uint64
- func (m *Plan) GetPlanPolicy() Policy
- func (m *Plan) GetPrice() types.Coin
- func (m *Plan) GetType() string
- func (m *Plan) Marshal() (dAtA []byte, err error)
- func (m *Plan) MarshalTo(dAtA []byte) (int, error)
- func (m *Plan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Plan) ProtoMessage()
- func (m *Plan) Reset()
- func (m *Plan) Size() (n int)
- func (m *Plan) String() string
- func (m *Plan) Unmarshal(dAtA []byte) error
- func (m *Plan) XXX_DiscardUnknown()
- func (m *Plan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Plan) XXX_Merge(src proto.Message)
- func (m *Plan) XXX_Size() int
- func (m *Plan) XXX_Unmarshal(b []byte) error
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (this *Policy) Equal(that interface{}) bool
- func (m *Policy) GetChainPolicies() []ChainPolicy
- func (m *Policy) GetEpochCuLimit() uint64
- func (m *Policy) GetGeolocationProfile() int32
- func (m *Policy) GetMaxProvidersToPair() uint64
- func (m *Policy) GetSelectedProviders() []string
- func (m *Policy) GetSelectedProvidersMode() SELECTED_PROVIDERS_MODE
- func (m *Policy) GetTotalCuLimit() uint64
- func (m *Policy) Marshal() (dAtA []byte, err error)
- func (m *Policy) MarshalTo(dAtA []byte) (int, error)
- func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) Size() (n int)
- func (m *Policy) String() string
- func (m *Policy) Unmarshal(dAtA []byte) error
- func (m *Policy) XXX_DiscardUnknown()
- func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Policy) XXX_Merge(src proto.Message)
- func (m *Policy) XXX_Size() int
- func (m *Policy) XXX_Unmarshal(b []byte) error
- type SELECTED_PROVIDERS_MODE
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) 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) 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) GetAllowOveruse ¶
func (*Plan) GetAnnualDiscountPercentage ¶
func (*Plan) GetDescription ¶
func (*Plan) GetOveruseRate ¶
func (*Plan) GetPlanPolicy ¶
func (*Plan) ProtoMessage ¶
func (*Plan) ProtoMessage()
func (*Plan) XXX_DiscardUnknown ¶
func (m *Plan) XXX_DiscardUnknown()
func (*Plan) XXX_Unmarshal ¶
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) GetChainPolicies ¶
func (m *Policy) GetChainPolicies() []ChainPolicy
func (*Policy) GetEpochCuLimit ¶
func (*Policy) GetGeolocationProfile ¶
func (*Policy) GetMaxProvidersToPair ¶
func (*Policy) GetSelectedProviders ¶
func (*Policy) GetSelectedProvidersMode ¶
func (m *Policy) GetSelectedProvidersMode() SELECTED_PROVIDERS_MODE
func (*Policy) GetTotalCuLimit ¶
func (*Policy) MarshalToSizedBuffer ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) XXX_DiscardUnknown ¶
func (m *Policy) XXX_DiscardUnknown()
func (*Policy) XXX_Marshal ¶
func (*Policy) XXX_Unmarshal ¶
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
Click to show internal directories.
Click to hide internal directories.