types

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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"`
	Apis    []string `protobuf:"bytes,2,rep,name=apis,proto3" json:"apis,omitempty"`
}

func (*ChainPolicy) Descriptor

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

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) 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 Policy

type Policy struct {
	ChainPolicies      []ChainPolicy `protobuf:"bytes,1,rep,name=chain_policies,json=chainPolicies,proto3" json:"chain_policies"`
	GeolocationProfile uint64        `protobuf:"varint,2,opt,name=geolocation_profile,json=geolocationProfile,proto3" json:"geolocation_profile,omitempty"`
	TotalCuLimit       uint64        `protobuf:"varint,3,opt,name=total_cu_limit,json=totalCuLimit,proto3" json:"total_cu_limit,omitempty"`
	EpochCuLimit       uint64        `protobuf:"varint,4,opt,name=epoch_cu_limit,json=epochCuLimit,proto3" json:"epoch_cu_limit,omitempty"`
	MaxProvidersToPair uint64        `protobuf:"varint,5,opt,name=max_providers_to_pair,json=maxProvidersToPair,proto3" json:"max_providers_to_pair,omitempty"`
}

func (*Policy) Descriptor

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

func (*Policy) GetChainPolicies

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

func (*Policy) GetEpochCuLimit

func (m *Policy) GetEpochCuLimit() uint64

func (*Policy) GetGeolocationProfile

func (m *Policy) GetGeolocationProfile() uint64

func (*Policy) GetMaxProvidersToPair

func (m *Policy) GetMaxProvidersToPair() uint64

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 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"`
	Policy       Policy       `protobuf:"bytes,6,opt,name=policy,proto3" json:"policy"`
	UsedCu       uint64       `protobuf:"varint,7,opt,name=used_cu,json=usedCu,proto3" json:"used_cu,omitempty"`
}

func (*Project) Descriptor

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

func (*Project) GetDescription

func (m *Project) GetDescription() string

func (*Project) GetEnabled

func (m *Project) GetEnabled() bool

func (*Project) GetIndex

func (m *Project) GetIndex() string

func (*Project) GetPolicy

func (m *Project) GetPolicy() Policy

func (*Project) GetProjectKeys

func (m *Project) GetProjectKeys() []ProjectKey

func (*Project) GetSubscription

func (m *Project) GetSubscription() string

func (*Project) GetUsedCu

func (m *Project) GetUsedCu() uint64

func (*Project) Marshal

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

func (*Project) MarshalTo

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

func (*Project) MarshalToSizedBuffer

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

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) Reset

func (m *Project) Reset()

func (*Project) Size

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

func (*Project) String

func (m *Project) String() string

func (*Project) Unmarshal

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

func (*Project) XXX_DiscardUnknown

func (m *Project) XXX_DiscardUnknown()

func (*Project) XXX_Marshal

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

func (*Project) XXX_Merge

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

func (*Project) XXX_Size

func (m *Project) XXX_Size() int

func (*Project) XXX_Unmarshal

func (m *Project) 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"`
	Vrfpk string                `protobuf:"bytes,3,opt,name=vrfpk,proto3" json:"vrfpk,omitempty"`
}

func (*ProjectKey) Descriptor

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

func (*ProjectKey) GetKey

func (m *ProjectKey) GetKey() string

func (*ProjectKey) GetTypes

func (m *ProjectKey) GetTypes() []ProjectKey_KEY_TYPE

func (*ProjectKey) GetVrfpk

func (m *ProjectKey) GetVrfpk() string

func (*ProjectKey) Marshal

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

func (*ProjectKey) MarshalTo

func (m *ProjectKey) MarshalTo(dAtA []byte) (int, 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"`
	Vrfpk     string `protobuf:"bytes,2,opt,name=vrfpk,proto3" json:"vrfpk,omitempty"`
}

func (*ProtoDeveloperData) Descriptor

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

func (*ProtoDeveloperData) GetProjectID

func (m *ProtoDeveloperData) GetProjectID() string

func (*ProtoDeveloperData) GetVrfpk

func (m *ProtoDeveloperData) GetVrfpk() 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

Jump to

Keyboard shortcuts

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