rpc_nodes

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const RegionNameApSeo1 = shared.RegionNameApSeo1

Equals "ap-seo-1"

View Source
const RegionNameApSin1 = shared.RegionNameApSin1

Equals "ap-sin-1"

View Source
const RegionNameApTyo1 = shared.RegionNameApTyo1

Equals "ap-tyo-1"

View Source
const RegionNameEuFrk1 = shared.RegionNameEuFrk1

Equals "eu-frk-1"

View Source
const RegionNameUsChi1 = shared.RegionNameUsChi1

Equals "us-chi-1"

View Source
const RegionNameUsSea1 = shared.RegionNameUsSea1

Equals "us-sea-1"

View Source
const RegionNameUsSva1 = shared.RegionNameUsSva1

Equals "us-sva-1"

View Source
const RegionNameUsWdc1 = shared.RegionNameUsWdc1

Equals "us-wdc-1"

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"

Variables

This section is empty.

Functions

This section is empty.

Types

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

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 *RPCNodesDedicated, err error)

Get details about an RPC Node Dedicated

func (*DedicatedService) List

List all RPC Node Dedicated you created

type Error

type Error = apierror.Error

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

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

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

Get details about an RPC Node Flex

func (*FlexService) List

func (r *FlexService) List(ctx context.Context, opts ...option.RequestOption) (res *RPCNodesFlexList, err error)

List all RPC Node Flex you created

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 RPCNodesDedicated

type RPCNodesDedicated struct {
	// Unique identifier for the RPC Node Dedicated.
	ID string `json:"id,required"`
	// Blockchain type.
	Blockchain string `json:"blockchain,required"`
	// When the RPC Node Dedicated was created.
	CreatedAt time.Time `json:"created_at,required" format:"date-time"`
	// RPC endpoint URL.
	Endpoint string `json:"endpoint,required"`
	// Name of the RPC Node Dedicated.
	Name string `json:"name,required"`
	// Network type (e.g., mainnet, testnet).
	Network string `json:"network,required"`
	// When the RPC Node Dedicated was updated.
	UpdatedAt time.Time `json:"updated_at,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
		UpdatedAt   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

RPC Node Dedicated details.

func (RPCNodesDedicated) RawJSON

func (r RPCNodesDedicated) RawJSON() string

Returns the unmodified JSON received from the API

func (*RPCNodesDedicated) UnmarshalJSON

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

type RPCNodesDedicatedBlockchain

type RPCNodesDedicatedBlockchain struct {
	// Blockchain type.
	Blockchain string `json:"blockchain,required"`
	// Network type (e.g., mainnet, testnet).
	Network string `json:"network,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 Dedicated RPC Node.

func (RPCNodesDedicatedBlockchain) RawJSON

func (r RPCNodesDedicatedBlockchain) RawJSON() string

Returns the unmodified JSON received from the API

func (*RPCNodesDedicatedBlockchain) UnmarshalJSON

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

type RPCNodesDedicatedBlockchainList

type RPCNodesDedicatedBlockchainList struct {
	Items []RPCNodesDedicatedBlockchain `json:"items,required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (RPCNodesDedicatedBlockchainList) RawJSON

Returns the unmodified JSON received from the API

func (*RPCNodesDedicatedBlockchainList) UnmarshalJSON

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

type RPCNodesDedicatedList

type RPCNodesDedicatedList struct {
	Items []RPCNodesDedicated `json:"items,required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (RPCNodesDedicatedList) RawJSON

func (r RPCNodesDedicatedList) RawJSON() string

Returns the unmodified JSON received from the API

func (*RPCNodesDedicatedList) UnmarshalJSON

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

type RPCNodesFlex

type RPCNodesFlex struct {
	// Unique identifier for the RPC Node Flex.
	ID string `json:"id,required"`
	// Blockchain type.
	Blockchain string `json:"blockchain,required"`
	// When the RPC Node Flex was created.
	CreatedAt time.Time `json:"created_at,required" format:"date-time"`
	// RPC endpoint URL.
	Endpoint string `json:"endpoint,required"`
	// Name of the RPC Node Flex.
	Name string `json:"name,required"`
	// Network type (e.g., mainnet, testnet).
	Network string `json:"network,required"`
	// When the RPC Node Flex was updated.
	UpdatedAt time.Time `json:"updated_at,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
		UpdatedAt   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

RPC Node Flex details.

func (RPCNodesFlex) RawJSON

func (r RPCNodesFlex) RawJSON() string

Returns the unmodified JSON received from the API

func (*RPCNodesFlex) UnmarshalJSON

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

type RPCNodesFlexBlockchain

type RPCNodesFlexBlockchain struct {
	// Blockchain type.
	Blockchain string `json:"blockchain,required"`
	// Network type (e.g., mainnet, testnet).
	Network string `json:"network,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 Flex RPC Node.

func (RPCNodesFlexBlockchain) RawJSON

func (r RPCNodesFlexBlockchain) RawJSON() string

Returns the unmodified JSON received from the API

func (*RPCNodesFlexBlockchain) UnmarshalJSON

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

type RPCNodesFlexBlockchainList

type RPCNodesFlexBlockchainList struct {
	Items []RPCNodesFlexBlockchain `json:"items,required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (RPCNodesFlexBlockchainList) RawJSON

func (r RPCNodesFlexBlockchainList) RawJSON() string

Returns the unmodified JSON received from the API

func (*RPCNodesFlexBlockchainList) UnmarshalJSON

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

type RPCNodesFlexList

type RPCNodesFlexList struct {
	Items []RPCNodesFlex `json:"items,required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (RPCNodesFlexList) RawJSON

func (r RPCNodesFlexList) RawJSON() string

Returns the unmodified JSON received from the API

func (*RPCNodesFlexList) UnmarshalJSON

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

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.

Jump to

Keyboard shortcuts

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