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) 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 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() uint64
- func (m *Policy) GetMaxProvidersToPair() uint64
- 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 Project
- func (*Project) Descriptor() ([]byte, []int)
- func (this *Project) Equal(that interface{}) bool
- func (m *Project) GetAdminPolicy() *Policy
- func (m *Project) GetDescription() string
- func (m *Project) GetEnabled() bool
- func (m *Project) GetIndex() string
- func (m *Project) GetProjectKeys() []ProjectKey
- func (m *Project) GetSnapshot() uint64
- func (m *Project) GetSubscription() string
- func (m *Project) GetSubscriptionPolicy() *Policy
- func (m *Project) GetUsedCu() uint64
- func (m *Project) Marshal() (dAtA []byte, err error)
- func (m *Project) MarshalTo(dAtA []byte) (int, error)
- func (m *Project) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Project) ProtoMessage()
- func (m *Project) Reset()
- func (m *Project) Size() (n int)
- func (m *Project) String() string
- func (m *Project) Unmarshal(dAtA []byte) error
- func (m *Project) XXX_DiscardUnknown()
- func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Project) XXX_Merge(src proto.Message)
- func (m *Project) XXX_Size() int
- func (m *Project) XXX_Unmarshal(b []byte) error
- type ProjectData
- func (*ProjectData) Descriptor() ([]byte, []int)
- func (this *ProjectData) Equal(that interface{}) bool
- func (m *ProjectData) GetDescription() string
- func (m *ProjectData) GetEnabled() bool
- func (m *ProjectData) GetName() string
- func (m *ProjectData) GetPolicy() *Policy
- func (m *ProjectData) GetProjectKeys() []ProjectKey
- func (m *ProjectData) Marshal() (dAtA []byte, err error)
- func (m *ProjectData) MarshalTo(dAtA []byte) (int, error)
- func (m *ProjectData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProjectData) ProtoMessage()
- func (m *ProjectData) Reset()
- func (m *ProjectData) Size() (n int)
- func (m *ProjectData) String() string
- func (m *ProjectData) Unmarshal(dAtA []byte) error
- func (m *ProjectData) XXX_DiscardUnknown()
- func (m *ProjectData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProjectData) XXX_Merge(src proto.Message)
- func (m *ProjectData) XXX_Size() int
- func (m *ProjectData) XXX_Unmarshal(b []byte) error
- type ProjectKey
- func (*ProjectKey) Descriptor() ([]byte, []int)
- func (this *ProjectKey) Equal(that interface{}) bool
- func (m *ProjectKey) GetKey() string
- func (m *ProjectKey) GetTypes() []ProjectKey_KEY_TYPE
- func (m *ProjectKey) Marshal() (dAtA []byte, err error)
- func (m *ProjectKey) MarshalTo(dAtA []byte) (int, error)
- func (m *ProjectKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProjectKey) ProtoMessage()
- func (m *ProjectKey) Reset()
- func (m *ProjectKey) Size() (n int)
- func (m *ProjectKey) String() string
- func (m *ProjectKey) Unmarshal(dAtA []byte) error
- func (m *ProjectKey) XXX_DiscardUnknown()
- func (m *ProjectKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProjectKey) XXX_Merge(src proto.Message)
- func (m *ProjectKey) XXX_Size() int
- func (m *ProjectKey) XXX_Unmarshal(b []byte) error
- type ProjectKey_KEY_TYPE
- type ProtoDeveloperData
- func (*ProtoDeveloperData) Descriptor() ([]byte, []int)
- func (this *ProtoDeveloperData) Equal(that interface{}) bool
- func (m *ProtoDeveloperData) GetProjectID() string
- func (m *ProtoDeveloperData) Marshal() (dAtA []byte, err error)
- func (m *ProtoDeveloperData) MarshalTo(dAtA []byte) (int, error)
- func (m *ProtoDeveloperData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProtoDeveloperData) ProtoMessage()
- func (m *ProtoDeveloperData) Reset()
- func (m *ProtoDeveloperData) Size() (n int)
- func (m *ProtoDeveloperData) String() string
- func (m *ProtoDeveloperData) Unmarshal(dAtA []byte) error
- func (m *ProtoDeveloperData) XXX_DiscardUnknown()
- func (m *ProtoDeveloperData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProtoDeveloperData) XXX_Merge(src proto.Message)
- func (m *ProtoDeveloperData) XXX_Size() int
- func (m *ProtoDeveloperData) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthProject = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProject = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProject = fmt.Errorf("proto: unexpected end of group") )
View Source
var ProjectKey_KEY_TYPE_name = map[int32]string{
0: "NONE",
1: "ADMIN",
2: "DEVELOPER",
}
View Source
var ProjectKey_KEY_TYPE_value = map[string]int32{
"NONE": 0,
"ADMIN": 1,
"DEVELOPER": 2,
}
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,omitempty" mapstructure:"chain_id"` Apis []string `protobuf:"bytes,2,rep,name=apis,proto3" json:"apis,omitempty" mapstructure:"apis"` }
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) 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 Policy ¶
type Policy struct { ChainPolicies []ChainPolicy `protobuf:"bytes,1,rep,name=chain_policies,json=chainPolicies,proto3" json:"chain_policies" mapstructure:"chain_policies"` GeolocationProfile uint64 `` /* 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 */ }
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) 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 Project ¶
type Project struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Subscription string `protobuf:"bytes,2,opt,name=subscription,proto3" json:"subscription,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Enabled bool `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"` ProjectKeys []ProjectKey `protobuf:"bytes,5,rep,name=project_keys,json=projectKeys,proto3" json:"project_keys"` AdminPolicy *Policy `protobuf:"bytes,6,opt,name=admin_policy,json=adminPolicy,proto3" json:"admin_policy,omitempty"` UsedCu uint64 `protobuf:"varint,7,opt,name=used_cu,json=usedCu,proto3" json:"used_cu,omitempty"` SubscriptionPolicy *Policy `protobuf:"bytes,8,opt,name=subscription_policy,json=subscriptionPolicy,proto3" json:"subscription_policy,omitempty"` Snapshot uint64 `protobuf:"varint,9,opt,name=snapshot,proto3" json:"snapshot,omitempty"` }
func (*Project) Descriptor ¶
func (*Project) GetAdminPolicy ¶
func (*Project) GetDescription ¶
func (*Project) GetEnabled ¶
func (*Project) GetProjectKeys ¶
func (m *Project) GetProjectKeys() []ProjectKey
func (*Project) GetSnapshot ¶
func (*Project) GetSubscription ¶
func (*Project) GetSubscriptionPolicy ¶
func (*Project) MarshalToSizedBuffer ¶
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) XXX_DiscardUnknown ¶
func (m *Project) XXX_DiscardUnknown()
func (*Project) XXX_Marshal ¶
func (*Project) XXX_Unmarshal ¶
type ProjectData ¶
type ProjectData struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` ProjectKeys []ProjectKey `protobuf:"bytes,4,rep,name=projectKeys,proto3" json:"projectKeys"` Policy *Policy `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"` }
used as a container struct for the subscription module
func (*ProjectData) Descriptor ¶
func (*ProjectData) Descriptor() ([]byte, []int)
func (*ProjectData) Equal ¶
func (this *ProjectData) Equal(that interface{}) bool
func (*ProjectData) GetDescription ¶
func (m *ProjectData) GetDescription() string
func (*ProjectData) GetEnabled ¶
func (m *ProjectData) GetEnabled() bool
func (*ProjectData) GetName ¶
func (m *ProjectData) GetName() string
func (*ProjectData) GetPolicy ¶
func (m *ProjectData) GetPolicy() *Policy
func (*ProjectData) GetProjectKeys ¶
func (m *ProjectData) GetProjectKeys() []ProjectKey
func (*ProjectData) Marshal ¶
func (m *ProjectData) Marshal() (dAtA []byte, err error)
func (*ProjectData) MarshalToSizedBuffer ¶
func (m *ProjectData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProjectData) ProtoMessage ¶
func (*ProjectData) ProtoMessage()
func (*ProjectData) Reset ¶
func (m *ProjectData) Reset()
func (*ProjectData) Size ¶
func (m *ProjectData) Size() (n int)
func (*ProjectData) String ¶
func (m *ProjectData) String() string
func (*ProjectData) Unmarshal ¶
func (m *ProjectData) Unmarshal(dAtA []byte) error
func (*ProjectData) XXX_DiscardUnknown ¶
func (m *ProjectData) XXX_DiscardUnknown()
func (*ProjectData) XXX_Marshal ¶
func (m *ProjectData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProjectData) XXX_Merge ¶
func (m *ProjectData) XXX_Merge(src proto.Message)
func (*ProjectData) XXX_Size ¶
func (m *ProjectData) XXX_Size() int
func (*ProjectData) XXX_Unmarshal ¶
func (m *ProjectData) XXX_Unmarshal(b []byte) error
type ProjectKey ¶
type ProjectKey struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Types []ProjectKey_KEY_TYPE `protobuf:"varint,2,rep,packed,name=types,proto3,enum=lavanet.lava.projects.ProjectKey_KEY_TYPE" json:"types,omitempty"` }
func (*ProjectKey) Descriptor ¶
func (*ProjectKey) Descriptor() ([]byte, []int)
func (*ProjectKey) Equal ¶
func (this *ProjectKey) Equal(that interface{}) bool
func (*ProjectKey) GetKey ¶
func (m *ProjectKey) GetKey() string
func (*ProjectKey) GetTypes ¶
func (m *ProjectKey) GetTypes() []ProjectKey_KEY_TYPE
func (*ProjectKey) Marshal ¶
func (m *ProjectKey) Marshal() (dAtA []byte, err error)
func (*ProjectKey) MarshalToSizedBuffer ¶
func (m *ProjectKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProjectKey) ProtoMessage ¶
func (*ProjectKey) ProtoMessage()
func (*ProjectKey) Reset ¶
func (m *ProjectKey) Reset()
func (*ProjectKey) Size ¶
func (m *ProjectKey) Size() (n int)
func (*ProjectKey) String ¶
func (m *ProjectKey) String() string
func (*ProjectKey) Unmarshal ¶
func (m *ProjectKey) Unmarshal(dAtA []byte) error
func (*ProjectKey) XXX_DiscardUnknown ¶
func (m *ProjectKey) XXX_DiscardUnknown()
func (*ProjectKey) XXX_Marshal ¶
func (m *ProjectKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProjectKey) XXX_Merge ¶
func (m *ProjectKey) XXX_Merge(src proto.Message)
func (*ProjectKey) XXX_Size ¶
func (m *ProjectKey) XXX_Size() int
func (*ProjectKey) XXX_Unmarshal ¶
func (m *ProjectKey) XXX_Unmarshal(b []byte) error
type ProjectKey_KEY_TYPE ¶
type ProjectKey_KEY_TYPE int32
const ( ProjectKey_NONE ProjectKey_KEY_TYPE = 0 ProjectKey_ADMIN ProjectKey_KEY_TYPE = 1 ProjectKey_DEVELOPER ProjectKey_KEY_TYPE = 2 )
func (ProjectKey_KEY_TYPE) EnumDescriptor ¶
func (ProjectKey_KEY_TYPE) EnumDescriptor() ([]byte, []int)
func (ProjectKey_KEY_TYPE) String ¶
func (x ProjectKey_KEY_TYPE) String() string
type ProtoDeveloperData ¶
type ProtoDeveloperData struct {
ProjectID string `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"`
}
func (*ProtoDeveloperData) Descriptor ¶
func (*ProtoDeveloperData) Descriptor() ([]byte, []int)
func (*ProtoDeveloperData) Equal ¶
func (this *ProtoDeveloperData) Equal(that interface{}) bool
func (*ProtoDeveloperData) GetProjectID ¶
func (m *ProtoDeveloperData) GetProjectID() string
func (*ProtoDeveloperData) Marshal ¶
func (m *ProtoDeveloperData) Marshal() (dAtA []byte, err error)
func (*ProtoDeveloperData) MarshalTo ¶
func (m *ProtoDeveloperData) MarshalTo(dAtA []byte) (int, error)
func (*ProtoDeveloperData) MarshalToSizedBuffer ¶
func (m *ProtoDeveloperData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProtoDeveloperData) ProtoMessage ¶
func (*ProtoDeveloperData) ProtoMessage()
func (*ProtoDeveloperData) Reset ¶
func (m *ProtoDeveloperData) Reset()
func (*ProtoDeveloperData) Size ¶
func (m *ProtoDeveloperData) Size() (n int)
func (*ProtoDeveloperData) String ¶
func (m *ProtoDeveloperData) String() string
func (*ProtoDeveloperData) Unmarshal ¶
func (m *ProtoDeveloperData) Unmarshal(dAtA []byte) error
func (*ProtoDeveloperData) XXX_DiscardUnknown ¶
func (m *ProtoDeveloperData) XXX_DiscardUnknown()
func (*ProtoDeveloperData) XXX_Marshal ¶
func (m *ProtoDeveloperData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProtoDeveloperData) XXX_Merge ¶
func (m *ProtoDeveloperData) XXX_Merge(src proto.Message)
func (*ProtoDeveloperData) XXX_Size ¶
func (m *ProtoDeveloperData) XXX_Size() int
func (*ProtoDeveloperData) XXX_Unmarshal ¶
func (m *ProtoDeveloperData) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.