proto

package
v0.10.10 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 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",
	}
	JobType_value = map[string]int32{
		"JOB_TYPE_UNSPECIFIED":  0,
		"JOB_TYPE_FLUX_MONITOR": 1,
		"JOB_TYPE_OCR":          2,
	}
)

Enum value maps for JobType.

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,
		},
	},
}

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_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 ApprovedJobRequest added in v0.10.10

type ApprovedJobRequest 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"`
	// 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) GetId added in v0.10.10

func (x *ApprovedJobRequest) GetId() string

func (*ApprovedJobRequest) GetSpec added in v0.10.10

func (x *ApprovedJobRequest) GetSpec() string

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

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

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"`
	// 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) GetSpec

func (x *ProposeJobRequest) GetSpec() string

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 {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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) GetId added in v0.10.10

func (x *RejectedJobRequest) GetId() string

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"`
	FundingAddresses []string  `protobuf:"bytes,3,rep,name=fundingAddresses,proto3" json:"fundingAddresses,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) GetChainId added in v0.10.10

func (x *UpdateNodeRequest) GetChainId() int64

func (*UpdateNodeRequest) GetFundingAddresses added in v0.10.10

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

func (*UpdateNodeRequest) GetJobTypes added in v0.10.10

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

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