proto

package
v1.3.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JobType_name = map[int32]string{
		0: "JOB_TYPE_UNSPECIFIED",
		1: "JOB_TYPE_FLUX_MONITOR",
		2: "JOB_TYPE_OCR",
		3: "JOB_TYPE_OCR2",
	}
	JobType_value = map[string]int32{
		"JOB_TYPE_UNSPECIFIED":  0,
		"JOB_TYPE_FLUX_MONITOR": 1,
		"JOB_TYPE_OCR":          2,
		"JOB_TYPE_OCR2":         3,
	}
)

Enum value maps for JobType.

View Source
var (
	ChainType_name = map[int32]string{
		0: "CHAIN_TYPE_UNSPECIFIED",
		1: "CHAIN_TYPE_EVM",
		2: "CHAIN_TYPE_SOLANA",
		3: "CHAIN_TYPE_TERRA",
	}
	ChainType_value = map[string]int32{
		"CHAIN_TYPE_UNSPECIFIED": 0,
		"CHAIN_TYPE_EVM":         1,
		"CHAIN_TYPE_SOLANA":      2,
		"CHAIN_TYPE_TERRA":       3,
	}
)

Enum value maps for ChainType.

View Source
var FeedsManager_ServiceDesc = wsrpc.ServiceDesc{
	ServiceName: "cfm.FeedsManager",
	HandlerType: (*FeedsManagerServer)(nil),
	Methods: []wsrpc.MethodDesc{
		{
			MethodName: "ApprovedJob",
			Handler:    _FeedsManager_ApprovedJob_Handler,
		},
		{
			MethodName: "UpdateNode",
			Handler:    _FeedsManager_UpdateNode_Handler,
		},
		{
			MethodName: "RejectedJob",
			Handler:    _FeedsManager_RejectedJob_Handler,
		},
		{
			MethodName: "CancelledJob",
			Handler:    _FeedsManager_CancelledJob_Handler,
		},
	},
}

FeedsManager_ServiceDesc is the wsrpc.ServiceDesc for FeedsManager service. It's only intended for direct use with wsrpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pkg_noderpc_proto_feeds_manager_proto protoreflect.FileDescriptor
View Source
var NodeService_ServiceDesc = wsrpc.ServiceDesc{
	ServiceName: "cfm.NodeService",
	HandlerType: (*NodeServiceServer)(nil),
	Methods: []wsrpc.MethodDesc{
		{
			MethodName: "ProposeJob",
			Handler:    _NodeService_ProposeJob_Handler,
		},
	},
}

NodeService_ServiceDesc is the wsrpc.ServiceDesc for NodeService service. It's only intended for direct use with wsrpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterFeedsManagerServer

func RegisterFeedsManagerServer(s wsrpc.ServiceRegistrar, srv FeedsManagerServer)

func RegisterNodeServiceServer

func RegisterNodeServiceServer(s wsrpc.ServiceRegistrar, srv NodeServiceServer)

Types

type Account added in v1.2.0

type Account struct {
	ChainType ChainType `protobuf:"varint,1,opt,name=chain_type,json=chainType,proto3,enum=cfm.ChainType" json:"chain_type,omitempty"`
	ChainId   string    `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Address   string    `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

An account on a specific blockchain

func (*Account) Descriptor deprecated added in v1.2.0

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAddress added in v1.2.0

func (x *Account) GetAddress() string

func (*Account) GetChainId added in v1.2.0

func (x *Account) GetChainId() string

func (*Account) GetChainType added in v1.2.0

func (x *Account) GetChainType() ChainType

func (*Account) ProtoMessage added in v1.2.0

func (*Account) ProtoMessage()

func (*Account) ProtoReflect added in v1.2.0

func (x *Account) ProtoReflect() protoreflect.Message

func (*Account) Reset added in v1.2.0

func (x *Account) Reset()

func (*Account) String added in v1.2.0

func (x *Account) String() string

type ApprovedJobRequest added in v0.10.10

type ApprovedJobRequest struct {
	Uuid    string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Version int64  `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*ApprovedJobRequest) Descriptor deprecated added in v0.10.10

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

Deprecated: Use ApprovedJobRequest.ProtoReflect.Descriptor instead.

func (*ApprovedJobRequest) GetUuid added in v0.10.11

func (x *ApprovedJobRequest) GetUuid() string

func (*ApprovedJobRequest) GetVersion added in v1.2.0

func (x *ApprovedJobRequest) GetVersion() int64

func (*ApprovedJobRequest) ProtoMessage added in v0.10.10

func (*ApprovedJobRequest) ProtoMessage()

func (*ApprovedJobRequest) ProtoReflect added in v0.10.10

func (x *ApprovedJobRequest) ProtoReflect() protoreflect.Message

func (*ApprovedJobRequest) Reset added in v0.10.10

func (x *ApprovedJobRequest) Reset()

func (*ApprovedJobRequest) String added in v0.10.10

func (x *ApprovedJobRequest) String() string

type ApprovedJobResponse added in v0.10.10

type ApprovedJobResponse struct {
	// contains filtered or unexported fields
}

func (*ApprovedJobResponse) Descriptor deprecated added in v0.10.10

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

Deprecated: Use ApprovedJobResponse.ProtoReflect.Descriptor instead.

func (*ApprovedJobResponse) ProtoMessage added in v0.10.10

func (*ApprovedJobResponse) ProtoMessage()

func (*ApprovedJobResponse) ProtoReflect added in v0.10.10

func (x *ApprovedJobResponse) ProtoReflect() protoreflect.Message

func (*ApprovedJobResponse) Reset added in v0.10.10

func (x *ApprovedJobResponse) Reset()

func (*ApprovedJobResponse) String added in v0.10.10

func (x *ApprovedJobResponse) String() string

type CancelledJobRequest added in v1.1.0

type CancelledJobRequest struct {
	Uuid    string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Version int64  `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelledJobRequest) Descriptor deprecated added in v1.1.0

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

Deprecated: Use CancelledJobRequest.ProtoReflect.Descriptor instead.

func (*CancelledJobRequest) GetUuid added in v1.1.0

func (x *CancelledJobRequest) GetUuid() string

func (*CancelledJobRequest) GetVersion added in v1.2.0

func (x *CancelledJobRequest) GetVersion() int64

func (*CancelledJobRequest) ProtoMessage added in v1.1.0

func (*CancelledJobRequest) ProtoMessage()

func (*CancelledJobRequest) ProtoReflect added in v1.1.0

func (x *CancelledJobRequest) ProtoReflect() protoreflect.Message

func (*CancelledJobRequest) Reset added in v1.1.0

func (x *CancelledJobRequest) Reset()

func (*CancelledJobRequest) String added in v1.1.0

func (x *CancelledJobRequest) String() string

type CancelledJobResponse added in v1.1.0

type CancelledJobResponse struct {
	// contains filtered or unexported fields
}

func (*CancelledJobResponse) Descriptor deprecated added in v1.1.0

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

Deprecated: Use CancelledJobResponse.ProtoReflect.Descriptor instead.

func (*CancelledJobResponse) ProtoMessage added in v1.1.0

func (*CancelledJobResponse) ProtoMessage()

func (*CancelledJobResponse) ProtoReflect added in v1.1.0

func (x *CancelledJobResponse) ProtoReflect() protoreflect.Message

func (*CancelledJobResponse) Reset added in v1.1.0

func (x *CancelledJobResponse) Reset()

func (*CancelledJobResponse) String added in v1.1.0

func (x *CancelledJobResponse) String() string

type Chain added in v1.2.0

type Chain struct {
	Id   string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type ChainType `protobuf:"varint,2,opt,name=type,proto3,enum=cfm.ChainType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Chain) Descriptor deprecated added in v1.2.0

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

Deprecated: Use Chain.ProtoReflect.Descriptor instead.

func (*Chain) GetId added in v1.2.0

func (x *Chain) GetId() string

func (*Chain) GetType added in v1.2.0

func (x *Chain) GetType() ChainType

func (*Chain) ProtoMessage added in v1.2.0

func (*Chain) ProtoMessage()

func (*Chain) ProtoReflect added in v1.2.0

func (x *Chain) ProtoReflect() protoreflect.Message

func (*Chain) Reset added in v1.2.0

func (x *Chain) Reset()

func (*Chain) String added in v1.2.0

func (x *Chain) String() string

type ChainType added in v1.2.0

type ChainType int32
const (
	ChainType_CHAIN_TYPE_UNSPECIFIED ChainType = 0
	ChainType_CHAIN_TYPE_EVM         ChainType = 1
	ChainType_CHAIN_TYPE_SOLANA      ChainType = 2
	ChainType_CHAIN_TYPE_TERRA       ChainType = 3
)

func (ChainType) Descriptor added in v1.2.0

func (ChainType) Descriptor() protoreflect.EnumDescriptor

func (ChainType) Enum added in v1.2.0

func (x ChainType) Enum() *ChainType

func (ChainType) EnumDescriptor deprecated added in v1.2.0

func (ChainType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChainType.Descriptor instead.

func (ChainType) Number added in v1.2.0

func (x ChainType) Number() protoreflect.EnumNumber

func (ChainType) String added in v1.2.0

func (x ChainType) String() string

func (ChainType) Type added in v1.2.0

type FeedsManagerClient

type FeedsManagerClient interface {
	ApprovedJob(ctx context.Context, in *ApprovedJobRequest) (*ApprovedJobResponse, error)
	UpdateNode(ctx context.Context, in *UpdateNodeRequest) (*UpdateNodeResponse, error)
	RejectedJob(ctx context.Context, in *RejectedJobRequest) (*RejectedJobResponse, error)
	CancelledJob(ctx context.Context, in *CancelledJobRequest) (*CancelledJobResponse, error)
}

FeedsManagerClient is the client API for FeedsManager service.

func NewFeedsManagerClient

func NewFeedsManagerClient(cc wsrpc.ClientInterface) FeedsManagerClient

type FeedsManagerServer

FeedsManagerServer is the server API for FeedsManager service.

type HealthcheckRequest added in v1.2.0

type HealthcheckRequest struct {
	// contains filtered or unexported fields
}

func (*HealthcheckRequest) Descriptor deprecated added in v1.2.0

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

Deprecated: Use HealthcheckRequest.ProtoReflect.Descriptor instead.

func (*HealthcheckRequest) ProtoMessage added in v1.2.0

func (*HealthcheckRequest) ProtoMessage()

func (*HealthcheckRequest) ProtoReflect added in v1.2.0

func (x *HealthcheckRequest) ProtoReflect() protoreflect.Message

func (*HealthcheckRequest) Reset added in v1.2.0

func (x *HealthcheckRequest) Reset()

func (*HealthcheckRequest) String added in v1.2.0

func (x *HealthcheckRequest) String() string

type HealthcheckResponse added in v1.2.0

type HealthcheckResponse struct {
	// contains filtered or unexported fields
}

func (*HealthcheckResponse) Descriptor deprecated added in v1.2.0

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

Deprecated: Use HealthcheckResponse.ProtoReflect.Descriptor instead.

func (*HealthcheckResponse) ProtoMessage added in v1.2.0

func (*HealthcheckResponse) ProtoMessage()

func (*HealthcheckResponse) ProtoReflect added in v1.2.0

func (x *HealthcheckResponse) ProtoReflect() protoreflect.Message

func (*HealthcheckResponse) Reset added in v1.2.0

func (x *HealthcheckResponse) Reset()

func (*HealthcheckResponse) String added in v1.2.0

func (x *HealthcheckResponse) String() string

type JobType added in v0.10.10

type JobType int32
const (
	JobType_JOB_TYPE_UNSPECIFIED  JobType = 0
	JobType_JOB_TYPE_FLUX_MONITOR JobType = 1
	JobType_JOB_TYPE_OCR          JobType = 2
	JobType_JOB_TYPE_OCR2         JobType = 3
)

func (JobType) Descriptor added in v0.10.10

func (JobType) Descriptor() protoreflect.EnumDescriptor

func (JobType) Enum added in v0.10.10

func (x JobType) Enum() *JobType

func (JobType) EnumDescriptor deprecated added in v0.10.10

func (JobType) EnumDescriptor() ([]byte, []int)

Deprecated: Use JobType.Descriptor instead.

func (JobType) Number added in v0.10.10

func (x JobType) Number() protoreflect.EnumNumber

func (JobType) String added in v0.10.10

func (x JobType) String() string

func (JobType) Type added in v0.10.10

func (JobType) Type() protoreflect.EnumType

type NodeServiceClient

type NodeServiceClient interface {
	ProposeJob(ctx context.Context, in *ProposeJobRequest) (*ProposeJobResponse, error)
}

NodeServiceClient is the client API for NodeService service.

func NewNodeServiceClient

func NewNodeServiceClient(cc wsrpc.ClientInterface) NodeServiceClient

type NodeServiceServer

type NodeServiceServer interface {
	ProposeJob(context.Context, *ProposeJobRequest) (*ProposeJobResponse, error)
}

NodeServiceServer is the server API for NodeService service.

type ProposeJobRequest

type ProposeJobRequest struct {
	Id         string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Spec       string   `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
	Multiaddrs []string `protobuf:"bytes,3,rep,name=multiaddrs,proto3" json:"multiaddrs,omitempty"`
	Version    int64    `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*ProposeJobRequest) Descriptor deprecated

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

Deprecated: Use ProposeJobRequest.ProtoReflect.Descriptor instead.

func (*ProposeJobRequest) GetId

func (x *ProposeJobRequest) GetId() string

func (*ProposeJobRequest) GetMultiaddrs added in v1.0.0

func (x *ProposeJobRequest) GetMultiaddrs() []string

func (*ProposeJobRequest) GetSpec

func (x *ProposeJobRequest) GetSpec() string

func (*ProposeJobRequest) GetVersion added in v1.2.0

func (x *ProposeJobRequest) GetVersion() int64

func (*ProposeJobRequest) ProtoMessage

func (*ProposeJobRequest) ProtoMessage()

func (*ProposeJobRequest) ProtoReflect

func (x *ProposeJobRequest) ProtoReflect() protoreflect.Message

func (*ProposeJobRequest) Reset

func (x *ProposeJobRequest) Reset()

func (*ProposeJobRequest) String

func (x *ProposeJobRequest) String() string

type ProposeJobResponse

type ProposeJobResponse struct {
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ProposeJobResponse) Descriptor deprecated

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

Deprecated: Use ProposeJobResponse.ProtoReflect.Descriptor instead.

func (*ProposeJobResponse) GetId

func (x *ProposeJobResponse) GetId() string

func (*ProposeJobResponse) ProtoMessage

func (*ProposeJobResponse) ProtoMessage()

func (*ProposeJobResponse) ProtoReflect

func (x *ProposeJobResponse) ProtoReflect() protoreflect.Message

func (*ProposeJobResponse) Reset

func (x *ProposeJobResponse) Reset()

func (*ProposeJobResponse) String

func (x *ProposeJobResponse) String() string

type RejectedJobRequest added in v0.10.10

type RejectedJobRequest struct {
	Uuid    string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Version int64  `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*RejectedJobRequest) Descriptor deprecated added in v0.10.10

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

Deprecated: Use RejectedJobRequest.ProtoReflect.Descriptor instead.

func (*RejectedJobRequest) GetUuid added in v0.10.11

func (x *RejectedJobRequest) GetUuid() string

func (*RejectedJobRequest) GetVersion added in v1.2.0

func (x *RejectedJobRequest) GetVersion() int64

func (*RejectedJobRequest) ProtoMessage added in v0.10.10

func (*RejectedJobRequest) ProtoMessage()

func (*RejectedJobRequest) ProtoReflect added in v0.10.10

func (x *RejectedJobRequest) ProtoReflect() protoreflect.Message

func (*RejectedJobRequest) Reset added in v0.10.10

func (x *RejectedJobRequest) Reset()

func (*RejectedJobRequest) String added in v0.10.10

func (x *RejectedJobRequest) String() string

type RejectedJobResponse added in v0.10.10

type RejectedJobResponse struct {
	// contains filtered or unexported fields
}

func (*RejectedJobResponse) Descriptor deprecated added in v0.10.10

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

Deprecated: Use RejectedJobResponse.ProtoReflect.Descriptor instead.

func (*RejectedJobResponse) ProtoMessage added in v0.10.10

func (*RejectedJobResponse) ProtoMessage()

func (*RejectedJobResponse) ProtoReflect added in v0.10.10

func (x *RejectedJobResponse) ProtoReflect() protoreflect.Message

func (*RejectedJobResponse) Reset added in v0.10.10

func (x *RejectedJobResponse) Reset()

func (*RejectedJobResponse) String added in v0.10.10

func (x *RejectedJobResponse) String() string

type UpdateNodeRequest added in v0.10.10

type UpdateNodeRequest struct {
	JobTypes           []JobType  `protobuf:"varint,1,rep,packed,name=job_types,json=jobTypes,proto3,enum=cfm.JobType" json:"job_types,omitempty"`
	ChainId            int64      `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // To be removed when all nodes are upgraded to 1.2
	AccountAddresses   []string   `protobuf:"bytes,3,rep,name=account_addresses,json=accountAddresses,proto3" json:"account_addresses,omitempty"`
	IsBootstrapPeer    bool       `protobuf:"varint,4,opt,name=is_bootstrap_peer,json=isBootstrapPeer,proto3" json:"is_bootstrap_peer,omitempty"`
	BootstrapMultiaddr string     `protobuf:"bytes,5,opt,name=bootstrap_multiaddr,json=bootstrapMultiaddr,proto3" json:"bootstrap_multiaddr,omitempty"`
	Version            string     `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
	ChainIds           []int64    `protobuf:"varint,7,rep,packed,name=chain_ids,json=chainIds,proto3" json:"chain_ids,omitempty"`
	Accounts           []*Account `protobuf:"bytes,8,rep,name=accounts,proto3" json:"accounts,omitempty"`
	Chains             []*Chain   `protobuf:"bytes,9,rep,name=chains,proto3" json:"chains,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateNodeRequest) Descriptor deprecated added in v0.10.10

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

Deprecated: Use UpdateNodeRequest.ProtoReflect.Descriptor instead.

func (*UpdateNodeRequest) GetAccountAddresses added in v0.10.11

func (x *UpdateNodeRequest) GetAccountAddresses() []string

func (*UpdateNodeRequest) GetAccounts added in v1.2.0

func (x *UpdateNodeRequest) GetAccounts() []*Account

func (*UpdateNodeRequest) GetBootstrapMultiaddr added in v0.10.11

func (x *UpdateNodeRequest) GetBootstrapMultiaddr() string

func (*UpdateNodeRequest) GetChainId added in v0.10.10

func (x *UpdateNodeRequest) GetChainId() int64

func (*UpdateNodeRequest) GetChainIds added in v1.0.0

func (x *UpdateNodeRequest) GetChainIds() []int64

func (*UpdateNodeRequest) GetChains added in v1.2.0

func (x *UpdateNodeRequest) GetChains() []*Chain

func (*UpdateNodeRequest) GetIsBootstrapPeer added in v0.10.11

func (x *UpdateNodeRequest) GetIsBootstrapPeer() bool

func (*UpdateNodeRequest) GetJobTypes added in v0.10.10

func (x *UpdateNodeRequest) GetJobTypes() []JobType

func (*UpdateNodeRequest) GetVersion added in v1.0.0

func (x *UpdateNodeRequest) GetVersion() string

func (*UpdateNodeRequest) ProtoMessage added in v0.10.10

func (*UpdateNodeRequest) ProtoMessage()

func (*UpdateNodeRequest) ProtoReflect added in v0.10.10

func (x *UpdateNodeRequest) ProtoReflect() protoreflect.Message

func (*UpdateNodeRequest) Reset added in v0.10.10

func (x *UpdateNodeRequest) Reset()

func (*UpdateNodeRequest) String added in v0.10.10

func (x *UpdateNodeRequest) String() string

type UpdateNodeResponse added in v0.10.10

type UpdateNodeResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateNodeResponse) Descriptor deprecated added in v0.10.10

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

Deprecated: Use UpdateNodeResponse.ProtoReflect.Descriptor instead.

func (*UpdateNodeResponse) ProtoMessage added in v0.10.10

func (*UpdateNodeResponse) ProtoMessage()

func (*UpdateNodeResponse) ProtoReflect added in v0.10.10

func (x *UpdateNodeResponse) ProtoReflect() protoreflect.Message

func (*UpdateNodeResponse) Reset added in v0.10.10

func (x *UpdateNodeResponse) Reset()

func (*UpdateNodeResponse) String added in v0.10.10

func (x *UpdateNodeResponse) String() string

Jump to

Keyboard shortcuts

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