types

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 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" 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) 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" 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) 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() 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"`
	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) Descriptor() ([]byte, []int)

func (*Project) Equal

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

func (*Project) GetAdminPolicy

func (m *Project) GetAdminPolicy() *Policy

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

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

func (*Project) GetSnapshot

func (m *Project) GetSnapshot() uint64

func (*Project) GetSubscription

func (m *Project) GetSubscription() string

func (*Project) GetSubscriptionPolicy

func (m *Project) GetSubscriptionPolicy() *Policy

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

func (m *ProjectData) MarshalTo(dAtA []byte) (int, 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) 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"`
}

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

Jump to

Keyboard shortcuts

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