rpc_nodes

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 16 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const RegionNameUsSva2 = shared.RegionNameUsSva2

Equals "us-sva-2"

View Source
const ResourceStatusCreating = shared.ResourceStatusCreating

Equals "creating"

View Source
const ResourceStatusDeleted = shared.ResourceStatusDeleted

Equals "deleted"

View Source
const ResourceStatusDeleting = shared.ResourceStatusDeleting

Equals "deleting"

View Source
const ResourceStatusError = shared.ResourceStatusError

Equals "error"

View Source
const ResourceStatusPending = shared.ResourceStatusPending

Equals "pending"

View Source
const ResourceStatusReady = shared.ResourceStatusReady

Equals "ready"

View Source
const ResourceStatusUpdating = shared.ResourceStatusUpdating

Equals "updating"

View Source
const VMMetricUnitBytes = shared.VMMetricUnitBytes

Equals "bytes"

View Source
const VMMetricUnitBytesPerSecond = shared.VMMetricUnitBytesPerSecond

Equals "bytes_per_second"

View Source
const VMMetricUnitCores = shared.VMMetricUnitCores

Equals "cores"

View Source
const VMMetricUnitOperationsPerSecond = shared.VMMetricUnitOperationsPerSecond

Equals "operations_per_second"

View Source
const VMMetricUnitRatio = shared.VMMetricUnitRatio

Equals "ratio"

Variables

This section is empty.

Functions

This section is empty.

Types

type CostQuote

type CostQuote = shared.CostQuote

Cost quote returned by POST /cost. current_summary and updated_summary hold the org billing summary now and with this resource; omitted when the caller cannot view billing.

This is an alias to an internal type.

type CostQuoteUpdate

type CostQuoteUpdate = shared.CostQuoteUpdate

Cost quote returned by PATCH /:id/cost: current-state quote, post-update quote, and signed diff. current_summary and updated_summary omitted when the caller cannot view billing.

This is an alias to an internal type.

type CostQuoteUpdateAfter

type CostQuoteUpdateAfter = shared.CostQuoteUpdateAfter

Quote for the proposed (post-update) resource state.

This is an alias to an internal type.

type CostQuoteUpdateAfterUsageDimension

type CostQuoteUpdateAfterUsageDimension = shared.CostQuoteUpdateAfterUsageDimension

Priced row for a single usage dimension emitted by a resource.

This is an alias to an internal type.

type CostQuoteUpdateBefore

type CostQuoteUpdateBefore = shared.CostQuoteUpdateBefore

Quote for the proposed (post-update) resource state.

This is an alias to an internal type.

type CostQuoteUpdateBeforeUsageDimension

type CostQuoteUpdateBeforeUsageDimension = shared.CostQuoteUpdateBeforeUsageDimension

Priced row for a single usage dimension emitted by a resource.

This is an alias to an internal type.

type CostQuoteUpdateDiff

type CostQuoteUpdateDiff = shared.CostQuoteUpdateDiff

Per-dimension and total deltas: after minus before.

This is an alias to an internal type.

type CostQuoteUpdateDiffUsageDimension

type CostQuoteUpdateDiffUsageDimension = shared.CostQuoteUpdateDiffUsageDimension

Per-dimension diff entry. Both before and after are always present.

This is an alias to an internal type.

type CostQuoteUpdateDiffUsageDimensionAfter

type CostQuoteUpdateDiffUsageDimensionAfter = shared.CostQuoteUpdateDiffUsageDimensionAfter

Priced row after the update. Always present.

This is an alias to an internal type.

type CostQuoteUpdateDiffUsageDimensionBefore

type CostQuoteUpdateDiffUsageDimensionBefore = shared.CostQuoteUpdateDiffUsageDimensionBefore

Priced row after the update. Always present.

This is an alias to an internal type.

type CostQuoteUsageDimension

type CostQuoteUsageDimension = shared.CostQuoteUsageDimension

Priced row for a single usage dimension emitted by a resource.

This is an alias to an internal type.

type Dedicated

type Dedicated struct {
	// Unique identifier for the RPC Node Dedicated.
	ID string `json:"id" api:"required"`
	// Blockchain type.
	Blockchain string `json:"blockchain" api:"required"`
	// When the RPC Node Dedicated was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// RPC endpoint URL.
	Endpoint string `json:"endpoint" api:"required"`
	// Name of the RPC Node Dedicated.
	Name string `json:"name" api:"required"`
	// Network type (e.g., mainnet, testnet).
	Network string `json:"network" api:"required"`
	// Project identifier associated with the RPC Node Dedicated.
	ProjectID string `json:"project_id" api:"required"`
	// Tags to attach to the RPC Node Dedicated.
	Tags []string `json:"tags" api:"required"`
	// When the RPC Node Dedicated was updated.
	UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID          respjson.Field
		Blockchain  respjson.Field
		CreatedAt   respjson.Field
		Endpoint    respjson.Field
		Name        respjson.Field
		Network     respjson.Field
		ProjectID   respjson.Field
		Tags        respjson.Field
		UpdatedAt   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

RPC Node Dedicated details.

func (Dedicated) RawJSON

func (r Dedicated) RawJSON() string

Returns the unmodified JSON received from the API

func (*Dedicated) UnmarshalJSON

func (r *Dedicated) UnmarshalJSON(data []byte) error

type DedicatedBlockchain

type DedicatedBlockchain struct {
	// Blockchain type.
	Blockchain string `json:"blockchain" api:"required"`
	// Network type (e.g., mainnet, testnet).
	Network string `json:"network" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Blockchain  respjson.Field
		Network     respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Blockchain supported by the RPC Node Dedicated.

func (DedicatedBlockchain) RawJSON

func (r DedicatedBlockchain) RawJSON() string

Returns the unmodified JSON received from the API

func (*DedicatedBlockchain) UnmarshalJSON

func (r *DedicatedBlockchain) UnmarshalJSON(data []byte) error

type DedicatedBlockchainList

type DedicatedBlockchainList struct {
	Items []DedicatedBlockchain `json:"items" api:"required"`
	// Pagination response details.
	Pagination shared.Pagination `json:"pagination" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		Pagination  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (DedicatedBlockchainList) RawJSON

func (r DedicatedBlockchainList) RawJSON() string

Returns the unmodified JSON received from the API

func (*DedicatedBlockchainList) UnmarshalJSON

func (r *DedicatedBlockchainList) UnmarshalJSON(data []byte) error

type DedicatedBlockchainListParams

type DedicatedBlockchainListParams struct {
	// Filter by blockchain
	Blockchain param.Opt[string] `query:"blockchain,omitzero" json:"-"`
	// Pagination cursor returned by a previous request. Only valid for the same
	// filters and sort order.
	Cursor param.Opt[string] `query:"cursor,omitzero" json:"-"`
	// Maximum number of items to return
	Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
	// Filter by network
	Network param.Opt[string] `query:"network,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, blockchain, network
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (DedicatedBlockchainListParams) URLQuery

func (r DedicatedBlockchainListParams) URLQuery() (v url.Values, err error)

URLQuery serializes DedicatedBlockchainListParams's query parameters as `url.Values`.

type DedicatedBlockchainService

type DedicatedBlockchainService struct {
	Options []option.RequestOption
}

DedicatedBlockchainService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDedicatedBlockchainService method instead.

func NewDedicatedBlockchainService

func NewDedicatedBlockchainService(opts ...option.RequestOption) (r DedicatedBlockchainService)

NewDedicatedBlockchainService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*DedicatedBlockchainService) List

List all Dedicated Blockchains

func (*DedicatedBlockchainService) ListAutoPaging

List all Dedicated Blockchains

type DedicatedList

type DedicatedList struct {
	Items []Dedicated `json:"items" api:"required"`
	// Pagination response details.
	Pagination shared.Pagination `json:"pagination" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		Pagination  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (DedicatedList) RawJSON

func (r DedicatedList) RawJSON() string

Returns the unmodified JSON received from the API

func (*DedicatedList) UnmarshalJSON

func (r *DedicatedList) UnmarshalJSON(data []byte) error

type DedicatedListParams

type DedicatedListParams struct {
	// Project ID of resources to request
	ProjectID string `query:"project_id" api:"required" json:"-"`
	// Filter by blockchain
	Blockchain param.Opt[string] `query:"blockchain,omitzero" json:"-"`
	// Pagination cursor returned by a previous request. Only valid for the same
	// filters and sort order.
	Cursor param.Opt[string] `query:"cursor,omitzero" json:"-"`
	// Maximum number of items to return
	Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
	// Filter by a case-insensitive substring of the RPC Node Dedicated name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Filter by network
	Network param.Opt[string] `query:"network,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, name, blockchain, network
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by tags. Repeat the parameter to require several tags; an RPC Node
	// Dedicated must carry all of them.
	Tags []string `query:"tags,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (DedicatedListParams) URLQuery

func (r DedicatedListParams) URLQuery() (v url.Values, err error)

URLQuery serializes DedicatedListParams's query parameters as `url.Values`.

type DedicatedService

type DedicatedService struct {
	Options     []option.RequestOption
	Blockchains DedicatedBlockchainService
}

DedicatedService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDedicatedService method instead.

func NewDedicatedService

func NewDedicatedService(opts ...option.RequestOption) (r DedicatedService)

NewDedicatedService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*DedicatedService) Get

func (r *DedicatedService) Get(ctx context.Context, nodeID string, opts ...option.RequestOption) (res *Dedicated, err error)

Get details about an RPC Node Dedicated

func (*DedicatedService) List

List all RPC Node Dedicated you created

func (*DedicatedService) ListAutoPaging

List all RPC Node Dedicated you created

type Error

type Error = apierror.Error

type Flex

type Flex struct {
	// Unique identifier for the RPC Node Flex.
	ID string `json:"id" api:"required"`
	// Blockchain type.
	Blockchain string `json:"blockchain" api:"required"`
	// When the RPC Node Flex was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// RPC endpoint URL.
	Endpoint string `json:"endpoint" api:"required"`
	// Name of the RPC Node Flex.
	Name string `json:"name" api:"required"`
	// Network type (e.g., mainnet, testnet).
	Network string `json:"network" api:"required"`
	// Project identifier associated with the RPC Node Flex.
	ProjectID string `json:"project_id" api:"required"`
	// Tags to attach to the RPC Node Flex.
	Tags []string `json:"tags" api:"required"`
	// When the RPC Node Flex was updated.
	UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID          respjson.Field
		Blockchain  respjson.Field
		CreatedAt   respjson.Field
		Endpoint    respjson.Field
		Name        respjson.Field
		Network     respjson.Field
		ProjectID   respjson.Field
		Tags        respjson.Field
		UpdatedAt   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

RPC Node Flex details.

func (Flex) RawJSON

func (r Flex) RawJSON() string

Returns the unmodified JSON received from the API

func (*Flex) UnmarshalJSON

func (r *Flex) UnmarshalJSON(data []byte) error

type FlexBlockchain

type FlexBlockchain struct {
	// Blockchain type.
	Blockchain string `json:"blockchain" api:"required"`
	// Network type (e.g., mainnet, testnet).
	Network string `json:"network" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Blockchain  respjson.Field
		Network     respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Blockchain supported by the RPC Node Flex.

func (FlexBlockchain) RawJSON

func (r FlexBlockchain) RawJSON() string

Returns the unmodified JSON received from the API

func (*FlexBlockchain) UnmarshalJSON

func (r *FlexBlockchain) UnmarshalJSON(data []byte) error

type FlexBlockchainList

type FlexBlockchainList struct {
	Items []FlexBlockchain `json:"items" api:"required"`
	// Pagination response details.
	Pagination shared.Pagination `json:"pagination" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		Pagination  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (FlexBlockchainList) RawJSON

func (r FlexBlockchainList) RawJSON() string

Returns the unmodified JSON received from the API

func (*FlexBlockchainList) UnmarshalJSON

func (r *FlexBlockchainList) UnmarshalJSON(data []byte) error

type FlexBlockchainListParams

type FlexBlockchainListParams struct {
	// Filter by blockchain
	Blockchain param.Opt[string] `query:"blockchain,omitzero" json:"-"`
	// Pagination cursor returned by a previous request. Only valid for the same
	// filters and sort order.
	Cursor param.Opt[string] `query:"cursor,omitzero" json:"-"`
	// Maximum number of items to return
	Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
	// Filter by network
	Network param.Opt[string] `query:"network,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, blockchain, network
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (FlexBlockchainListParams) URLQuery

func (r FlexBlockchainListParams) URLQuery() (v url.Values, err error)

URLQuery serializes FlexBlockchainListParams's query parameters as `url.Values`.

type FlexBlockchainService

type FlexBlockchainService struct {
	Options []option.RequestOption
}

FlexBlockchainService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFlexBlockchainService method instead.

func NewFlexBlockchainService

func NewFlexBlockchainService(opts ...option.RequestOption) (r FlexBlockchainService)

NewFlexBlockchainService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*FlexBlockchainService) List

List all Flex Blockchains

func (*FlexBlockchainService) ListAutoPaging

List all Flex Blockchains

type FlexList

type FlexList struct {
	Items []Flex `json:"items" api:"required"`
	// Pagination response details.
	Pagination shared.Pagination `json:"pagination" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		Pagination  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (FlexList) RawJSON

func (r FlexList) RawJSON() string

Returns the unmodified JSON received from the API

func (*FlexList) UnmarshalJSON

func (r *FlexList) UnmarshalJSON(data []byte) error

type FlexListParams

type FlexListParams struct {
	// Project ID of resources to request
	ProjectID string `query:"project_id" api:"required" json:"-"`
	// Filter by blockchain
	Blockchain param.Opt[string] `query:"blockchain,omitzero" json:"-"`
	// Pagination cursor returned by a previous request. Only valid for the same
	// filters and sort order.
	Cursor param.Opt[string] `query:"cursor,omitzero" json:"-"`
	// Maximum number of items to return
	Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
	// Filter by a case-insensitive substring of the RPC Node Flex name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Filter by network
	Network param.Opt[string] `query:"network,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, name, blockchain, network
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by tags. Repeat the parameter to require several tags; an RPC Node Flex
	// must carry all of them.
	Tags []string `query:"tags,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (FlexListParams) URLQuery

func (r FlexListParams) URLQuery() (v url.Values, err error)

URLQuery serializes FlexListParams's query parameters as `url.Values`.

type FlexNewParams

type FlexNewParams struct {
	// Blockchain.
	Blockchain string `json:"blockchain" api:"required"`
	// Name of the RPC Node Flex.
	Name string `json:"name" api:"required"`
	// Network type (e.g., mainnet, testnet).
	Network string `json:"network" api:"required"`
	// Project ID to associate with the RPC Node Flex.
	ProjectID string `json:"project_id" api:"required"`
	// Tags to attach to the RPC Node Flex (optional, max 50).
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (FlexNewParams) MarshalJSON

func (r FlexNewParams) MarshalJSON() (data []byte, err error)

func (*FlexNewParams) UnmarshalJSON

func (r *FlexNewParams) UnmarshalJSON(data []byte) error

type FlexService

type FlexService struct {
	Options     []option.RequestOption
	Blockchains FlexBlockchainService
}

FlexService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFlexService method instead.

func NewFlexService

func NewFlexService(opts ...option.RequestOption) (r FlexService)

NewFlexService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*FlexService) Delete

func (r *FlexService) Delete(ctx context.Context, nodeID string, opts ...option.RequestOption) (err error)

Delete an RPC Node Flex

func (*FlexService) Get

func (r *FlexService) Get(ctx context.Context, nodeID string, opts ...option.RequestOption) (res *Flex, err error)

Get details about an RPC Node Flex

func (*FlexService) List

func (r *FlexService) List(ctx context.Context, query FlexListParams, opts ...option.RequestOption) (res *pagination.Cursor[Flex], err error)

List all RPC Node Flex you created

func (*FlexService) ListAutoPaging

func (r *FlexService) ListAutoPaging(ctx context.Context, query FlexListParams, opts ...option.RequestOption) *pagination.CursorAutoPager[Flex]

List all RPC Node Flex you created

func (*FlexService) New

func (r *FlexService) New(ctx context.Context, body FlexNewParams, opts ...option.RequestOption) (res *Flex, err error)

Create a new RPC Node Flex

func (*FlexService) Update

func (r *FlexService) Update(ctx context.Context, nodeID string, body FlexUpdateParams, opts ...option.RequestOption) (res *Flex, err error)

Update an existing RPC Node Flex

type FlexUpdateParams

type FlexUpdateParams struct {
	// Name of the RPC Node Flex.
	Name param.Opt[string] `json:"name,omitzero"`
	// Tags to attach to the RPC Node Flex (optional, max 50).
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (FlexUpdateParams) MarshalJSON

func (r FlexUpdateParams) MarshalJSON() (data []byte, err error)

func (*FlexUpdateParams) UnmarshalJSON

func (r *FlexUpdateParams) UnmarshalJSON(data []byte) error

type OrganizationBillingSummary

type OrganizationBillingSummary = shared.OrganizationBillingSummary

Forward-looking billing summary for an organization. All costs are run-rate projections from the organization's current active usage ("≈ $X/mo at current usage").

This is an alias to an internal type.

type Pagination

type Pagination = shared.Pagination

Pagination response details.

This is an alias to an internal type.

type RPCNodeService

type RPCNodeService struct {
	Options   []option.RequestOption
	Flex      FlexService
	Dedicated DedicatedService
}

RPCNodeService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewRPCNodeService method instead.

func NewRPCNodeService

func NewRPCNodeService(opts ...option.RequestOption) (r RPCNodeService)

NewRPCNodeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type RegionName

type RegionName = shared.RegionName

Region the resource is in.

This is an alias to an internal type.

type ResourceStatus

type ResourceStatus = shared.ResourceStatus

Status of the resource.

This is an alias to an internal type.

type SourceIPRuleParam

type SourceIPRuleParam = shared.SourceIPRuleParam

IP filter rules.

This is an alias to an internal type.

type SourceIPRuleResponse

type SourceIPRuleResponse = shared.SourceIPRuleResponse

IP filter rules.

This is an alias to an internal type.

type VMMetricUnit

type VMMetricUnit = shared.VMMetricUnit

Unit the values are expressed in.

This is an alias to an internal type.

Jump to

Keyboard shortcuts

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