v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Gateway_GetVersion_FullMethodName         = "/gateway.v1.Gateway/GetVersion"
	Gateway_GetIdempotentToken_FullMethodName = "/gateway.v1.Gateway/GetIdempotentToken"
	Gateway_CreateMinerSet_FullMethodName     = "/gateway.v1.Gateway/CreateMinerSet"
	Gateway_ListMinerSet_FullMethodName       = "/gateway.v1.Gateway/ListMinerSet"
	Gateway_GetMinerSet_FullMethodName        = "/gateway.v1.Gateway/GetMinerSet"
	Gateway_UpdateMinerSet_FullMethodName     = "/gateway.v1.Gateway/UpdateMinerSet"
	Gateway_DeleteMinerSet_FullMethodName     = "/gateway.v1.Gateway/DeleteMinerSet"
	Gateway_ScaleMinerSet_FullMethodName      = "/gateway.v1.Gateway/ScaleMinerSet"
	Gateway_CreateMiner_FullMethodName        = "/gateway.v1.Gateway/CreateMiner"
	Gateway_ListMiner_FullMethodName          = "/gateway.v1.Gateway/ListMiner"
	Gateway_GetMiner_FullMethodName           = "/gateway.v1.Gateway/GetMiner"
	Gateway_UpdateMiner_FullMethodName        = "/gateway.v1.Gateway/UpdateMiner"
	Gateway_DeleteMiner_FullMethodName        = "/gateway.v1.Gateway/DeleteMiner"
)
View Source
const OperationGatewayCreateMiner = "/gateway.v1.Gateway/CreateMiner"
View Source
const OperationGatewayCreateMinerSet = "/gateway.v1.Gateway/CreateMinerSet"
View Source
const OperationGatewayDeleteMiner = "/gateway.v1.Gateway/DeleteMiner"
View Source
const OperationGatewayDeleteMinerSet = "/gateway.v1.Gateway/DeleteMinerSet"
View Source
const OperationGatewayGetIdempotentToken = "/gateway.v1.Gateway/GetIdempotentToken"
View Source
const OperationGatewayGetMiner = "/gateway.v1.Gateway/GetMiner"
View Source
const OperationGatewayGetMinerSet = "/gateway.v1.Gateway/GetMinerSet"
View Source
const OperationGatewayGetVersion = "/gateway.v1.Gateway/GetVersion"
View Source
const OperationGatewayListMiner = "/gateway.v1.Gateway/ListMiner"
View Source
const OperationGatewayListMinerSet = "/gateway.v1.Gateway/ListMinerSet"
View Source
const OperationGatewayScaleMinerSet = "/gateway.v1.Gateway/ScaleMinerSet"
View Source
const OperationGatewayUpdateMiner = "/gateway.v1.Gateway/UpdateMiner"
View Source
const OperationGatewayUpdateMinerSet = "/gateway.v1.Gateway/UpdateMinerSet"

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "UserLoginFailed",
		1: "UserAlreadyExists",
		2: "UserNotFound",
		3: "UserCreateFailed",
	}
	ErrorReason_value = map[string]int32{
		"UserLoginFailed":   0,
		"UserAlreadyExists": 1,
		"UserNotFound":      2,
		"UserCreateFailed":  3,
	}
)

Enum value maps for ErrorReason.

View Source
var File_gateway_v1_errors_proto protoreflect.FileDescriptor
View Source
var File_gateway_v1_gateway_proto protoreflect.FileDescriptor
View Source
var Gateway_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gateway.v1.Gateway",
	HandlerType: (*GatewayServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetVersion",
			Handler:    _Gateway_GetVersion_Handler,
		},
		{
			MethodName: "GetIdempotentToken",
			Handler:    _Gateway_GetIdempotentToken_Handler,
		},
		{
			MethodName: "CreateMinerSet",
			Handler:    _Gateway_CreateMinerSet_Handler,
		},
		{
			MethodName: "ListMinerSet",
			Handler:    _Gateway_ListMinerSet_Handler,
		},
		{
			MethodName: "GetMinerSet",
			Handler:    _Gateway_GetMinerSet_Handler,
		},
		{
			MethodName: "UpdateMinerSet",
			Handler:    _Gateway_UpdateMinerSet_Handler,
		},
		{
			MethodName: "DeleteMinerSet",
			Handler:    _Gateway_DeleteMinerSet_Handler,
		},
		{
			MethodName: "ScaleMinerSet",
			Handler:    _Gateway_ScaleMinerSet_Handler,
		},
		{
			MethodName: "CreateMiner",
			Handler:    _Gateway_CreateMiner_Handler,
		},
		{
			MethodName: "ListMiner",
			Handler:    _Gateway_ListMiner_Handler,
		},
		{
			MethodName: "GetMiner",
			Handler:    _Gateway_GetMiner_Handler,
		},
		{
			MethodName: "UpdateMiner",
			Handler:    _Gateway_UpdateMiner_Handler,
		},
		{
			MethodName: "DeleteMiner",
			Handler:    _Gateway_DeleteMiner_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gateway/v1/gateway.proto",
}

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

Functions

func ErrorUserAlreadyExists

func ErrorUserAlreadyExists(format string, args ...interface{}) *errors.Error

用户已存在错误

func ErrorUserCreateFailed

func ErrorUserCreateFailed(format string, args ...interface{}) *errors.Error

创建用户失败错误

func ErrorUserLoginFailed

func ErrorUserLoginFailed(format string, args ...interface{}) *errors.Error

用户登录失败,可能是用户名或密码不对

func ErrorUserNotFound

func ErrorUserNotFound(format string, args ...interface{}) *errors.Error

用户未找到错误

func IsUserAlreadyExists

func IsUserAlreadyExists(err error) bool

用户已存在错误

func IsUserCreateFailed

func IsUserCreateFailed(err error) bool

创建用户失败错误

func IsUserLoginFailed

func IsUserLoginFailed(err error) bool

用户登录失败,可能是用户名或密码不对

func IsUserNotFound

func IsUserNotFound(err error) bool

用户未找到错误

func RegisterGatewayHTTPServer

func RegisterGatewayHTTPServer(s *http.Server, srv GatewayHTTPServer)

func RegisterGatewayServer

func RegisterGatewayServer(s grpc.ServiceRegistrar, srv GatewayServer)

Types

type CreateMinerRequest

type CreateMinerRequest struct {
	DisplayName string `protobuf:"bytes,1,opt,name=displayName,proto3" json:"displayName,omitempty"`
	MinerType   string `protobuf:"bytes,2,opt,name=minerType,proto3" json:"minerType,omitempty"`
	ChainName   string `protobuf:"bytes,3,opt,name=chainName,proto3" json:"chainName,omitempty"`
	DataDir     string `protobuf:"bytes,4,opt,name=dataDir,proto3" json:"dataDir,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMinerRequest) Descriptor deprecated

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

Deprecated: Use CreateMinerRequest.ProtoReflect.Descriptor instead.

func (*CreateMinerRequest) GetChainName

func (x *CreateMinerRequest) GetChainName() string

func (*CreateMinerRequest) GetDataDir

func (x *CreateMinerRequest) GetDataDir() string

func (*CreateMinerRequest) GetDisplayName

func (x *CreateMinerRequest) GetDisplayName() string

func (*CreateMinerRequest) GetMinerType

func (x *CreateMinerRequest) GetMinerType() string

func (*CreateMinerRequest) ProtoMessage

func (*CreateMinerRequest) ProtoMessage()

func (*CreateMinerRequest) ProtoReflect

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

func (*CreateMinerRequest) Reset

func (x *CreateMinerRequest) Reset()

func (*CreateMinerRequest) String

func (x *CreateMinerRequest) String() string

func (*CreateMinerRequest) Validate

func (m *CreateMinerRequest) Validate() error

Validate checks the field values on CreateMinerRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateMinerRequest) ValidateAll

func (m *CreateMinerRequest) ValidateAll() error

ValidateAll checks the field values on CreateMinerRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateMinerRequestMultiError, or nil if none found.

type CreateMinerRequestMultiError

type CreateMinerRequestMultiError []error

CreateMinerRequestMultiError is an error wrapping multiple validation errors returned by CreateMinerRequest.ValidateAll() if the designated constraints aren't met.

func (CreateMinerRequestMultiError) AllErrors

func (m CreateMinerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateMinerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateMinerRequestValidationError

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

CreateMinerRequestValidationError is the validation error returned by CreateMinerRequest.Validate if the designated constraints aren't met.

func (CreateMinerRequestValidationError) Cause

Cause function returns cause value.

func (CreateMinerRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateMinerRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateMinerRequestValidationError) Field

Field function returns field value.

func (CreateMinerRequestValidationError) Key

Key function returns key value.

func (CreateMinerRequestValidationError) Reason

Reason function returns reason value.

type CreateMinerSetRequest

type CreateMinerSetRequest struct {
	Replicas      int32          `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"`
	DisplayName   string         `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"`
	DeletePolicy  string         `protobuf:"bytes,3,opt,name=deletePolicy,proto3" json:"deletePolicy,omitempty"`
	MinerTemplate *MinerTemplate `protobuf:"bytes,4,opt,name=MinerTemplate,proto3" json:"MinerTemplate,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMinerSetRequest) Descriptor deprecated

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

Deprecated: Use CreateMinerSetRequest.ProtoReflect.Descriptor instead.

func (*CreateMinerSetRequest) GetDeletePolicy

func (x *CreateMinerSetRequest) GetDeletePolicy() string

func (*CreateMinerSetRequest) GetDisplayName

func (x *CreateMinerSetRequest) GetDisplayName() string

func (*CreateMinerSetRequest) GetMinerTemplate

func (x *CreateMinerSetRequest) GetMinerTemplate() *MinerTemplate

func (*CreateMinerSetRequest) GetReplicas

func (x *CreateMinerSetRequest) GetReplicas() int32

func (*CreateMinerSetRequest) ProtoMessage

func (*CreateMinerSetRequest) ProtoMessage()

func (*CreateMinerSetRequest) ProtoReflect

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

func (*CreateMinerSetRequest) Reset

func (x *CreateMinerSetRequest) Reset()

func (*CreateMinerSetRequest) String

func (x *CreateMinerSetRequest) String() string

func (*CreateMinerSetRequest) Validate

func (m *CreateMinerSetRequest) Validate() error

Validate checks the field values on CreateMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateMinerSetRequest) ValidateAll

func (m *CreateMinerSetRequest) ValidateAll() error

ValidateAll checks the field values on CreateMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateMinerSetRequestMultiError, or nil if none found.

type CreateMinerSetRequestMultiError

type CreateMinerSetRequestMultiError []error

CreateMinerSetRequestMultiError is an error wrapping multiple validation errors returned by CreateMinerSetRequest.ValidateAll() if the designated constraints aren't met.

func (CreateMinerSetRequestMultiError) AllErrors

func (m CreateMinerSetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateMinerSetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateMinerSetRequestValidationError

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

CreateMinerSetRequestValidationError is the validation error returned by CreateMinerSetRequest.Validate if the designated constraints aren't met.

func (CreateMinerSetRequestValidationError) Cause

Cause function returns cause value.

func (CreateMinerSetRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateMinerSetRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateMinerSetRequestValidationError) Field

Field function returns field value.

func (CreateMinerSetRequestValidationError) Key

Key function returns key value.

func (CreateMinerSetRequestValidationError) Reason

Reason function returns reason value.

type DeleteMinerRequest

type DeleteMinerRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteMinerRequest) Descriptor deprecated

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

Deprecated: Use DeleteMinerRequest.ProtoReflect.Descriptor instead.

func (*DeleteMinerRequest) GetName

func (x *DeleteMinerRequest) GetName() string

func (*DeleteMinerRequest) ProtoMessage

func (*DeleteMinerRequest) ProtoMessage()

func (*DeleteMinerRequest) ProtoReflect

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

func (*DeleteMinerRequest) Reset

func (x *DeleteMinerRequest) Reset()

func (*DeleteMinerRequest) String

func (x *DeleteMinerRequest) String() string

func (*DeleteMinerRequest) Validate

func (m *DeleteMinerRequest) Validate() error

Validate checks the field values on DeleteMinerRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteMinerRequest) ValidateAll

func (m *DeleteMinerRequest) ValidateAll() error

ValidateAll checks the field values on DeleteMinerRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteMinerRequestMultiError, or nil if none found.

type DeleteMinerRequestMultiError

type DeleteMinerRequestMultiError []error

DeleteMinerRequestMultiError is an error wrapping multiple validation errors returned by DeleteMinerRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteMinerRequestMultiError) AllErrors

func (m DeleteMinerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteMinerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteMinerRequestValidationError

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

DeleteMinerRequestValidationError is the validation error returned by DeleteMinerRequest.Validate if the designated constraints aren't met.

func (DeleteMinerRequestValidationError) Cause

Cause function returns cause value.

func (DeleteMinerRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteMinerRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteMinerRequestValidationError) Field

Field function returns field value.

func (DeleteMinerRequestValidationError) Key

Key function returns key value.

func (DeleteMinerRequestValidationError) Reason

Reason function returns reason value.

type DeleteMinerSetRequest

type DeleteMinerSetRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteMinerSetRequest) Descriptor deprecated

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

Deprecated: Use DeleteMinerSetRequest.ProtoReflect.Descriptor instead.

func (*DeleteMinerSetRequest) GetName

func (x *DeleteMinerSetRequest) GetName() string

func (*DeleteMinerSetRequest) ProtoMessage

func (*DeleteMinerSetRequest) ProtoMessage()

func (*DeleteMinerSetRequest) ProtoReflect

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

func (*DeleteMinerSetRequest) Reset

func (x *DeleteMinerSetRequest) Reset()

func (*DeleteMinerSetRequest) String

func (x *DeleteMinerSetRequest) String() string

func (*DeleteMinerSetRequest) Validate

func (m *DeleteMinerSetRequest) Validate() error

Validate checks the field values on DeleteMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteMinerSetRequest) ValidateAll

func (m *DeleteMinerSetRequest) ValidateAll() error

ValidateAll checks the field values on DeleteMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteMinerSetRequestMultiError, or nil if none found.

type DeleteMinerSetRequestMultiError

type DeleteMinerSetRequestMultiError []error

DeleteMinerSetRequestMultiError is an error wrapping multiple validation errors returned by DeleteMinerSetRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteMinerSetRequestMultiError) AllErrors

func (m DeleteMinerSetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteMinerSetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteMinerSetRequestValidationError

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

DeleteMinerSetRequestValidationError is the validation error returned by DeleteMinerSetRequest.Validate if the designated constraints aren't met.

func (DeleteMinerSetRequestValidationError) Cause

Cause function returns cause value.

func (DeleteMinerSetRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteMinerSetRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteMinerSetRequestValidationError) Field

Field function returns field value.

func (DeleteMinerSetRequestValidationError) Key

Key function returns key value.

func (DeleteMinerSetRequestValidationError) Reason

Reason function returns reason value.

type ErrorReason

type ErrorReason int32
const (
	// 用户登录失败,可能是用户名或密码不对
	ErrorReason_UserLoginFailed ErrorReason = 0
	// 用户已存在错误
	ErrorReason_UserAlreadyExists ErrorReason = 1
	// 用户未找到错误
	ErrorReason_UserNotFound ErrorReason = 2
	// 创建用户失败错误
	ErrorReason_UserCreateFailed ErrorReason = 3
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

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

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

type GatewayClient

type GatewayClient interface {
	// GetVersion
	GetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetVersionResponse, error)
	// GetIdempotentToken
	GetIdempotentToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IdempotentResponse, error)
	// CreateMinerSet
	CreateMinerSet(ctx context.Context, in *v1beta1.MinerSet, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListMinerSet
	ListMinerSet(ctx context.Context, in *ListMinerSetRequest, opts ...grpc.CallOption) (*ListMinerSetResponse, error)
	// GetMinerSet
	GetMinerSet(ctx context.Context, in *GetMinerSetRequest, opts ...grpc.CallOption) (*v1beta1.MinerSet, error)
	// UpdateMinerSet
	UpdateMinerSet(ctx context.Context, in *v1beta1.MinerSet, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// DeleteMinerSet
	DeleteMinerSet(ctx context.Context, in *DeleteMinerSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ScaleMinerSet
	ScaleMinerSet(ctx context.Context, in *ScaleMinerSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// CreateMiner
	CreateMiner(ctx context.Context, in *v1beta1.Miner, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListMiner
	ListMiner(ctx context.Context, in *ListMinerRequest, opts ...grpc.CallOption) (*ListMinerResponse, error)
	// GetMiner
	GetMiner(ctx context.Context, in *GetMinerRequest, opts ...grpc.CallOption) (*v1beta1.Miner, error)
	// UpdateMiner
	UpdateMiner(ctx context.Context, in *v1beta1.Miner, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// DeleteMiner
	DeleteMiner(ctx context.Context, in *DeleteMinerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

GatewayClient is the client API for Gateway service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewGatewayClient

func NewGatewayClient(cc grpc.ClientConnInterface) GatewayClient

type GatewayHTTPClient

type GatewayHTTPClient interface {
	CreateMiner(ctx context.Context, req *v1beta1.Miner, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	CreateMinerSet(ctx context.Context, req *v1beta1.MinerSet, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteMiner(ctx context.Context, req *DeleteMinerRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteMinerSet(ctx context.Context, req *DeleteMinerSetRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	GetIdempotentToken(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *IdempotentResponse, err error)
	GetMiner(ctx context.Context, req *GetMinerRequest, opts ...http.CallOption) (rsp *v1beta1.Miner, err error)
	GetMinerSet(ctx context.Context, req *GetMinerSetRequest, opts ...http.CallOption) (rsp *v1beta1.MinerSet, err error)
	GetVersion(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetVersionResponse, err error)
	ListMiner(ctx context.Context, req *ListMinerRequest, opts ...http.CallOption) (rsp *ListMinerResponse, err error)
	ListMinerSet(ctx context.Context, req *ListMinerSetRequest, opts ...http.CallOption) (rsp *ListMinerSetResponse, err error)
	ScaleMinerSet(ctx context.Context, req *ScaleMinerSetRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateMiner(ctx context.Context, req *v1beta1.Miner, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateMinerSet(ctx context.Context, req *v1beta1.MinerSet, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}

func NewGatewayHTTPClient

func NewGatewayHTTPClient(client *http.Client) GatewayHTTPClient

type GatewayHTTPClientImpl

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

func (*GatewayHTTPClientImpl) CreateMiner

func (c *GatewayHTTPClientImpl) CreateMiner(ctx context.Context, in *v1beta1.Miner, opts ...http.CallOption) (*emptypb.Empty, error)

func (*GatewayHTTPClientImpl) CreateMinerSet

func (c *GatewayHTTPClientImpl) CreateMinerSet(ctx context.Context, in *v1beta1.MinerSet, opts ...http.CallOption) (*emptypb.Empty, error)

func (*GatewayHTTPClientImpl) DeleteMiner

func (*GatewayHTTPClientImpl) DeleteMinerSet

func (c *GatewayHTTPClientImpl) DeleteMinerSet(ctx context.Context, in *DeleteMinerSetRequest, opts ...http.CallOption) (*emptypb.Empty, error)

func (*GatewayHTTPClientImpl) GetIdempotentToken

func (c *GatewayHTTPClientImpl) GetIdempotentToken(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*IdempotentResponse, error)

func (*GatewayHTTPClientImpl) GetMiner

func (*GatewayHTTPClientImpl) GetMinerSet

func (*GatewayHTTPClientImpl) GetVersion

func (*GatewayHTTPClientImpl) ListMiner

func (*GatewayHTTPClientImpl) ListMinerSet

func (*GatewayHTTPClientImpl) ScaleMinerSet

func (*GatewayHTTPClientImpl) UpdateMiner

func (c *GatewayHTTPClientImpl) UpdateMiner(ctx context.Context, in *v1beta1.Miner, opts ...http.CallOption) (*emptypb.Empty, error)

func (*GatewayHTTPClientImpl) UpdateMinerSet

func (c *GatewayHTTPClientImpl) UpdateMinerSet(ctx context.Context, in *v1beta1.MinerSet, opts ...http.CallOption) (*emptypb.Empty, error)

type GatewayHTTPServer

type GatewayHTTPServer interface {
	// CreateMiner CreateMiner
	CreateMiner(context.Context, *v1beta1.Miner) (*emptypb.Empty, error)
	// CreateMinerSet CreateMinerSet
	CreateMinerSet(context.Context, *v1beta1.MinerSet) (*emptypb.Empty, error)
	// DeleteMiner DeleteMiner
	DeleteMiner(context.Context, *DeleteMinerRequest) (*emptypb.Empty, error)
	// DeleteMinerSet DeleteMinerSet
	DeleteMinerSet(context.Context, *DeleteMinerSetRequest) (*emptypb.Empty, error)
	// GetIdempotentToken GetIdempotentToken
	GetIdempotentToken(context.Context, *emptypb.Empty) (*IdempotentResponse, error)
	// GetMiner GetMiner
	GetMiner(context.Context, *GetMinerRequest) (*v1beta1.Miner, error)
	// GetMinerSet GetMinerSet
	GetMinerSet(context.Context, *GetMinerSetRequest) (*v1beta1.MinerSet, error)
	// GetVersion GetVersion
	GetVersion(context.Context, *emptypb.Empty) (*GetVersionResponse, error)
	// ListMiner ListMiner
	ListMiner(context.Context, *ListMinerRequest) (*ListMinerResponse, error)
	// ListMinerSet ListMinerSet
	ListMinerSet(context.Context, *ListMinerSetRequest) (*ListMinerSetResponse, error)
	// ScaleMinerSet ScaleMinerSet
	ScaleMinerSet(context.Context, *ScaleMinerSetRequest) (*emptypb.Empty, error)
	// UpdateMiner UpdateMiner
	UpdateMiner(context.Context, *v1beta1.Miner) (*emptypb.Empty, error)
	// UpdateMinerSet UpdateMinerSet
	UpdateMinerSet(context.Context, *v1beta1.MinerSet) (*emptypb.Empty, error)
}

type GatewayServer

type GatewayServer interface {
	// GetVersion
	GetVersion(context.Context, *emptypb.Empty) (*GetVersionResponse, error)
	// GetIdempotentToken
	GetIdempotentToken(context.Context, *emptypb.Empty) (*IdempotentResponse, error)
	// CreateMinerSet
	CreateMinerSet(context.Context, *v1beta1.MinerSet) (*emptypb.Empty, error)
	// ListMinerSet
	ListMinerSet(context.Context, *ListMinerSetRequest) (*ListMinerSetResponse, error)
	// GetMinerSet
	GetMinerSet(context.Context, *GetMinerSetRequest) (*v1beta1.MinerSet, error)
	// UpdateMinerSet
	UpdateMinerSet(context.Context, *v1beta1.MinerSet) (*emptypb.Empty, error)
	// DeleteMinerSet
	DeleteMinerSet(context.Context, *DeleteMinerSetRequest) (*emptypb.Empty, error)
	// ScaleMinerSet
	ScaleMinerSet(context.Context, *ScaleMinerSetRequest) (*emptypb.Empty, error)
	// CreateMiner
	CreateMiner(context.Context, *v1beta1.Miner) (*emptypb.Empty, error)
	// ListMiner
	ListMiner(context.Context, *ListMinerRequest) (*ListMinerResponse, error)
	// GetMiner
	GetMiner(context.Context, *GetMinerRequest) (*v1beta1.Miner, error)
	// UpdateMiner
	UpdateMiner(context.Context, *v1beta1.Miner) (*emptypb.Empty, error)
	// DeleteMiner
	DeleteMiner(context.Context, *DeleteMinerRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

GatewayServer is the server API for Gateway service. All implementations must embed UnimplementedGatewayServer for forward compatibility

type GetMinerRequest

type GetMinerRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMinerRequest) Descriptor deprecated

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

Deprecated: Use GetMinerRequest.ProtoReflect.Descriptor instead.

func (*GetMinerRequest) GetName

func (x *GetMinerRequest) GetName() string

func (*GetMinerRequest) ProtoMessage

func (*GetMinerRequest) ProtoMessage()

func (*GetMinerRequest) ProtoReflect

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

func (*GetMinerRequest) Reset

func (x *GetMinerRequest) Reset()

func (*GetMinerRequest) String

func (x *GetMinerRequest) String() string

func (*GetMinerRequest) Validate

func (m *GetMinerRequest) Validate() error

Validate checks the field values on GetMinerRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetMinerRequest) ValidateAll

func (m *GetMinerRequest) ValidateAll() error

ValidateAll checks the field values on GetMinerRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetMinerRequestMultiError, or nil if none found.

type GetMinerRequestMultiError

type GetMinerRequestMultiError []error

GetMinerRequestMultiError is an error wrapping multiple validation errors returned by GetMinerRequest.ValidateAll() if the designated constraints aren't met.

func (GetMinerRequestMultiError) AllErrors

func (m GetMinerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetMinerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetMinerRequestValidationError

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

GetMinerRequestValidationError is the validation error returned by GetMinerRequest.Validate if the designated constraints aren't met.

func (GetMinerRequestValidationError) Cause

Cause function returns cause value.

func (GetMinerRequestValidationError) Error

Error satisfies the builtin error interface

func (GetMinerRequestValidationError) ErrorName

func (e GetMinerRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetMinerRequestValidationError) Field

Field function returns field value.

func (GetMinerRequestValidationError) Key

Key function returns key value.

func (GetMinerRequestValidationError) Reason

Reason function returns reason value.

type GetMinerSetRequest

type GetMinerSetRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMinerSetRequest) Descriptor deprecated

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

Deprecated: Use GetMinerSetRequest.ProtoReflect.Descriptor instead.

func (*GetMinerSetRequest) GetName

func (x *GetMinerSetRequest) GetName() string

func (*GetMinerSetRequest) ProtoMessage

func (*GetMinerSetRequest) ProtoMessage()

func (*GetMinerSetRequest) ProtoReflect

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

func (*GetMinerSetRequest) Reset

func (x *GetMinerSetRequest) Reset()

func (*GetMinerSetRequest) String

func (x *GetMinerSetRequest) String() string

func (*GetMinerSetRequest) Validate

func (m *GetMinerSetRequest) Validate() error

Validate checks the field values on GetMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetMinerSetRequest) ValidateAll

func (m *GetMinerSetRequest) ValidateAll() error

ValidateAll checks the field values on GetMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetMinerSetRequestMultiError, or nil if none found.

type GetMinerSetRequestMultiError

type GetMinerSetRequestMultiError []error

GetMinerSetRequestMultiError is an error wrapping multiple validation errors returned by GetMinerSetRequest.ValidateAll() if the designated constraints aren't met.

func (GetMinerSetRequestMultiError) AllErrors

func (m GetMinerSetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetMinerSetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetMinerSetRequestValidationError

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

GetMinerSetRequestValidationError is the validation error returned by GetMinerSetRequest.Validate if the designated constraints aren't met.

func (GetMinerSetRequestValidationError) Cause

Cause function returns cause value.

func (GetMinerSetRequestValidationError) Error

Error satisfies the builtin error interface

func (GetMinerSetRequestValidationError) ErrorName

ErrorName returns error name.

func (GetMinerSetRequestValidationError) Field

Field function returns field value.

func (GetMinerSetRequestValidationError) Key

Key function returns key value.

func (GetMinerSetRequestValidationError) Reason

Reason function returns reason value.

type GetVersionResponse

type GetVersionResponse struct {
	GitVersion   string `protobuf:"bytes,1,opt,name=GitVersion,proto3" json:"GitVersion,omitempty"`
	GitCommit    string `protobuf:"bytes,2,opt,name=GitCommit,proto3" json:"GitCommit,omitempty"`
	GitTreeState string `protobuf:"bytes,3,opt,name=GitTreeState,proto3" json:"GitTreeState,omitempty"`
	BuildDate    string `protobuf:"bytes,4,opt,name=BuildDate,proto3" json:"BuildDate,omitempty"`
	GoVersion    string `protobuf:"bytes,5,opt,name=GoVersion,proto3" json:"GoVersion,omitempty"`
	Compiler     string `protobuf:"bytes,6,opt,name=Compiler,proto3" json:"Compiler,omitempty"`
	Platform     string `protobuf:"bytes,7,opt,name=Platform,proto3" json:"Platform,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVersionResponse) Descriptor deprecated

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

Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead.

func (*GetVersionResponse) GetBuildDate

func (x *GetVersionResponse) GetBuildDate() string

func (*GetVersionResponse) GetCompiler

func (x *GetVersionResponse) GetCompiler() string

func (*GetVersionResponse) GetGitCommit

func (x *GetVersionResponse) GetGitCommit() string

func (*GetVersionResponse) GetGitTreeState

func (x *GetVersionResponse) GetGitTreeState() string

func (*GetVersionResponse) GetGitVersion

func (x *GetVersionResponse) GetGitVersion() string

func (*GetVersionResponse) GetGoVersion

func (x *GetVersionResponse) GetGoVersion() string

func (*GetVersionResponse) GetPlatform

func (x *GetVersionResponse) GetPlatform() string

func (*GetVersionResponse) ProtoMessage

func (*GetVersionResponse) ProtoMessage()

func (*GetVersionResponse) ProtoReflect

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

func (*GetVersionResponse) Reset

func (x *GetVersionResponse) Reset()

func (*GetVersionResponse) String

func (x *GetVersionResponse) String() string

func (*GetVersionResponse) Validate

func (m *GetVersionResponse) Validate() error

Validate checks the field values on GetVersionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetVersionResponse) ValidateAll

func (m *GetVersionResponse) ValidateAll() error

ValidateAll checks the field values on GetVersionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetVersionResponseMultiError, or nil if none found.

type GetVersionResponseMultiError

type GetVersionResponseMultiError []error

GetVersionResponseMultiError is an error wrapping multiple validation errors returned by GetVersionResponse.ValidateAll() if the designated constraints aren't met.

func (GetVersionResponseMultiError) AllErrors

func (m GetVersionResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetVersionResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetVersionResponseValidationError

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

GetVersionResponseValidationError is the validation error returned by GetVersionResponse.Validate if the designated constraints aren't met.

func (GetVersionResponseValidationError) Cause

Cause function returns cause value.

func (GetVersionResponseValidationError) Error

Error satisfies the builtin error interface

func (GetVersionResponseValidationError) ErrorName

ErrorName returns error name.

func (GetVersionResponseValidationError) Field

Field function returns field value.

func (GetVersionResponseValidationError) Key

Key function returns key value.

func (GetVersionResponseValidationError) Reason

Reason function returns reason value.

type IdempotentResponse

type IdempotentResponse struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*IdempotentResponse) Descriptor deprecated

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

Deprecated: Use IdempotentResponse.ProtoReflect.Descriptor instead.

func (*IdempotentResponse) GetToken

func (x *IdempotentResponse) GetToken() string

func (*IdempotentResponse) ProtoMessage

func (*IdempotentResponse) ProtoMessage()

func (*IdempotentResponse) ProtoReflect

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

func (*IdempotentResponse) Reset

func (x *IdempotentResponse) Reset()

func (*IdempotentResponse) String

func (x *IdempotentResponse) String() string

func (*IdempotentResponse) Validate

func (m *IdempotentResponse) Validate() error

Validate checks the field values on IdempotentResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*IdempotentResponse) ValidateAll

func (m *IdempotentResponse) ValidateAll() error

ValidateAll checks the field values on IdempotentResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IdempotentResponseMultiError, or nil if none found.

type IdempotentResponseMultiError

type IdempotentResponseMultiError []error

IdempotentResponseMultiError is an error wrapping multiple validation errors returned by IdempotentResponse.ValidateAll() if the designated constraints aren't met.

func (IdempotentResponseMultiError) AllErrors

func (m IdempotentResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IdempotentResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type IdempotentResponseValidationError

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

IdempotentResponseValidationError is the validation error returned by IdempotentResponse.Validate if the designated constraints aren't met.

func (IdempotentResponseValidationError) Cause

Cause function returns cause value.

func (IdempotentResponseValidationError) Error

Error satisfies the builtin error interface

func (IdempotentResponseValidationError) ErrorName

ErrorName returns error name.

func (IdempotentResponseValidationError) Field

Field function returns field value.

func (IdempotentResponseValidationError) Key

Key function returns key value.

func (IdempotentResponseValidationError) Reason

Reason function returns reason value.

type ListMinerRequest

type ListMinerRequest struct {
	Limit  int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMinerRequest) Descriptor deprecated

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

Deprecated: Use ListMinerRequest.ProtoReflect.Descriptor instead.

func (*ListMinerRequest) GetLimit

func (x *ListMinerRequest) GetLimit() int64

func (*ListMinerRequest) GetOffset

func (x *ListMinerRequest) GetOffset() int64

func (*ListMinerRequest) ProtoMessage

func (*ListMinerRequest) ProtoMessage()

func (*ListMinerRequest) ProtoReflect

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

func (*ListMinerRequest) Reset

func (x *ListMinerRequest) Reset()

func (*ListMinerRequest) String

func (x *ListMinerRequest) String() string

func (*ListMinerRequest) Validate

func (m *ListMinerRequest) Validate() error

Validate checks the field values on ListMinerRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListMinerRequest) ValidateAll

func (m *ListMinerRequest) ValidateAll() error

ValidateAll checks the field values on ListMinerRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListMinerRequestMultiError, or nil if none found.

type ListMinerRequestMultiError

type ListMinerRequestMultiError []error

ListMinerRequestMultiError is an error wrapping multiple validation errors returned by ListMinerRequest.ValidateAll() if the designated constraints aren't met.

func (ListMinerRequestMultiError) AllErrors

func (m ListMinerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListMinerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListMinerRequestValidationError

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

ListMinerRequestValidationError is the validation error returned by ListMinerRequest.Validate if the designated constraints aren't met.

func (ListMinerRequestValidationError) Cause

Cause function returns cause value.

func (ListMinerRequestValidationError) Error

Error satisfies the builtin error interface

func (ListMinerRequestValidationError) ErrorName

ErrorName returns error name.

func (ListMinerRequestValidationError) Field

Field function returns field value.

func (ListMinerRequestValidationError) Key

Key function returns key value.

func (ListMinerRequestValidationError) Reason

Reason function returns reason value.

type ListMinerResponse

type ListMinerResponse struct {
	TotalCount int64    `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
	Miners     []*Miner `protobuf:"bytes,2,rep,name=Miners,proto3" json:"Miners,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMinerResponse) Descriptor deprecated

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

Deprecated: Use ListMinerResponse.ProtoReflect.Descriptor instead.

func (*ListMinerResponse) GetMiners

func (x *ListMinerResponse) GetMiners() []*Miner

func (*ListMinerResponse) GetTotalCount

func (x *ListMinerResponse) GetTotalCount() int64

func (*ListMinerResponse) ProtoMessage

func (*ListMinerResponse) ProtoMessage()

func (*ListMinerResponse) ProtoReflect

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

func (*ListMinerResponse) Reset

func (x *ListMinerResponse) Reset()

func (*ListMinerResponse) String

func (x *ListMinerResponse) String() string

func (*ListMinerResponse) Validate

func (m *ListMinerResponse) Validate() error

Validate checks the field values on ListMinerResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListMinerResponse) ValidateAll

func (m *ListMinerResponse) ValidateAll() error

ValidateAll checks the field values on ListMinerResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListMinerResponseMultiError, or nil if none found.

type ListMinerResponseMultiError

type ListMinerResponseMultiError []error

ListMinerResponseMultiError is an error wrapping multiple validation errors returned by ListMinerResponse.ValidateAll() if the designated constraints aren't met.

func (ListMinerResponseMultiError) AllErrors

func (m ListMinerResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListMinerResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListMinerResponseValidationError

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

ListMinerResponseValidationError is the validation error returned by ListMinerResponse.Validate if the designated constraints aren't met.

func (ListMinerResponseValidationError) Cause

Cause function returns cause value.

func (ListMinerResponseValidationError) Error

Error satisfies the builtin error interface

func (ListMinerResponseValidationError) ErrorName

ErrorName returns error name.

func (ListMinerResponseValidationError) Field

Field function returns field value.

func (ListMinerResponseValidationError) Key

Key function returns key value.

func (ListMinerResponseValidationError) Reason

Reason function returns reason value.

type ListMinerSetRequest

type ListMinerSetRequest struct {
	Limit  int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMinerSetRequest) Descriptor deprecated

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

Deprecated: Use ListMinerSetRequest.ProtoReflect.Descriptor instead.

func (*ListMinerSetRequest) GetLimit

func (x *ListMinerSetRequest) GetLimit() int64

func (*ListMinerSetRequest) GetOffset

func (x *ListMinerSetRequest) GetOffset() int64

func (*ListMinerSetRequest) ProtoMessage

func (*ListMinerSetRequest) ProtoMessage()

func (*ListMinerSetRequest) ProtoReflect

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

func (*ListMinerSetRequest) Reset

func (x *ListMinerSetRequest) Reset()

func (*ListMinerSetRequest) String

func (x *ListMinerSetRequest) String() string

func (*ListMinerSetRequest) Validate

func (m *ListMinerSetRequest) Validate() error

Validate checks the field values on ListMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListMinerSetRequest) ValidateAll

func (m *ListMinerSetRequest) ValidateAll() error

ValidateAll checks the field values on ListMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListMinerSetRequestMultiError, or nil if none found.

type ListMinerSetRequestMultiError

type ListMinerSetRequestMultiError []error

ListMinerSetRequestMultiError is an error wrapping multiple validation errors returned by ListMinerSetRequest.ValidateAll() if the designated constraints aren't met.

func (ListMinerSetRequestMultiError) AllErrors

func (m ListMinerSetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListMinerSetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListMinerSetRequestValidationError

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

ListMinerSetRequestValidationError is the validation error returned by ListMinerSetRequest.Validate if the designated constraints aren't met.

func (ListMinerSetRequestValidationError) Cause

Cause function returns cause value.

func (ListMinerSetRequestValidationError) Error

Error satisfies the builtin error interface

func (ListMinerSetRequestValidationError) ErrorName

ErrorName returns error name.

func (ListMinerSetRequestValidationError) Field

Field function returns field value.

func (ListMinerSetRequestValidationError) Key

Key function returns key value.

func (ListMinerSetRequestValidationError) Reason

Reason function returns reason value.

type ListMinerSetResponse

type ListMinerSetResponse struct {
	TotalCount int64       `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
	MinerSets  []*MinerSet `protobuf:"bytes,2,rep,name=MinerSets,proto3" json:"MinerSets,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMinerSetResponse) Descriptor deprecated

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

Deprecated: Use ListMinerSetResponse.ProtoReflect.Descriptor instead.

func (*ListMinerSetResponse) GetMinerSets

func (x *ListMinerSetResponse) GetMinerSets() []*MinerSet

func (*ListMinerSetResponse) GetTotalCount

func (x *ListMinerSetResponse) GetTotalCount() int64

func (*ListMinerSetResponse) ProtoMessage

func (*ListMinerSetResponse) ProtoMessage()

func (*ListMinerSetResponse) ProtoReflect

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

func (*ListMinerSetResponse) Reset

func (x *ListMinerSetResponse) Reset()

func (*ListMinerSetResponse) String

func (x *ListMinerSetResponse) String() string

func (*ListMinerSetResponse) Validate

func (m *ListMinerSetResponse) Validate() error

Validate checks the field values on ListMinerSetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListMinerSetResponse) ValidateAll

func (m *ListMinerSetResponse) ValidateAll() error

ValidateAll checks the field values on ListMinerSetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListMinerSetResponseMultiError, or nil if none found.

type ListMinerSetResponseMultiError

type ListMinerSetResponseMultiError []error

ListMinerSetResponseMultiError is an error wrapping multiple validation errors returned by ListMinerSetResponse.ValidateAll() if the designated constraints aren't met.

func (ListMinerSetResponseMultiError) AllErrors

func (m ListMinerSetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListMinerSetResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListMinerSetResponseValidationError

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

ListMinerSetResponseValidationError is the validation error returned by ListMinerSetResponse.Validate if the designated constraints aren't met.

func (ListMinerSetResponseValidationError) Cause

Cause function returns cause value.

func (ListMinerSetResponseValidationError) Error

Error satisfies the builtin error interface

func (ListMinerSetResponseValidationError) ErrorName

ErrorName returns error name.

func (ListMinerSetResponseValidationError) Field

Field function returns field value.

func (ListMinerSetResponseValidationError) Key

Key function returns key value.

func (ListMinerSetResponseValidationError) Reason

Reason function returns reason value.

type Miner

type Miner struct {
	Name        string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	DisplayName string                 `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"`
	MinerType   string                 `protobuf:"bytes,3,opt,name=minerType,proto3" json:"minerType,omitempty"`
	ChainName   string                 `protobuf:"bytes,4,opt,name=chainName,proto3" json:"chainName,omitempty"`
	DataDir     string                 `protobuf:"bytes,5,opt,name=dataDir,proto3" json:"dataDir,omitempty"`
	Status      string                 `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*Miner) Descriptor deprecated

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

Deprecated: Use Miner.ProtoReflect.Descriptor instead.

func (*Miner) GetChainName

func (x *Miner) GetChainName() string

func (*Miner) GetCreatedAt

func (x *Miner) GetCreatedAt() *timestamppb.Timestamp

func (*Miner) GetDataDir

func (x *Miner) GetDataDir() string

func (*Miner) GetDisplayName

func (x *Miner) GetDisplayName() string

func (*Miner) GetMinerType

func (x *Miner) GetMinerType() string

func (*Miner) GetName

func (x *Miner) GetName() string

func (*Miner) GetStatus

func (x *Miner) GetStatus() string

func (*Miner) GetUpdatedAt

func (x *Miner) GetUpdatedAt() *timestamppb.Timestamp

func (*Miner) ProtoMessage

func (*Miner) ProtoMessage()

func (*Miner) ProtoReflect

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

func (*Miner) Reset

func (x *Miner) Reset()

func (*Miner) String

func (x *Miner) String() string

func (*Miner) Validate

func (m *Miner) Validate() error

Validate checks the field values on Miner with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Miner) ValidateAll

func (m *Miner) ValidateAll() error

ValidateAll checks the field values on Miner with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MinerMultiError, or nil if none found.

type MinerMultiError

type MinerMultiError []error

MinerMultiError is an error wrapping multiple validation errors returned by Miner.ValidateAll() if the designated constraints aren't met.

func (MinerMultiError) AllErrors

func (m MinerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MinerMultiError) Error

func (m MinerMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MinerSet

type MinerSet struct {
	Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Replicas      int32                  `protobuf:"varint,2,opt,name=replicas,proto3" json:"replicas,omitempty"`
	DisplayName   string                 `protobuf:"bytes,3,opt,name=displayName,proto3" json:"displayName,omitempty"`
	DeletePolicy  string                 `protobuf:"bytes,4,opt,name=deletePolicy,proto3" json:"deletePolicy,omitempty"`
	MinerTemplate *MinerTemplate         `protobuf:"bytes,5,opt,name=MinerTemplate,proto3" json:"MinerTemplate,omitempty"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt     *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*MinerSet) Descriptor deprecated

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

Deprecated: Use MinerSet.ProtoReflect.Descriptor instead.

func (*MinerSet) GetCreatedAt

func (x *MinerSet) GetCreatedAt() *timestamppb.Timestamp

func (*MinerSet) GetDeletePolicy

func (x *MinerSet) GetDeletePolicy() string

func (*MinerSet) GetDisplayName

func (x *MinerSet) GetDisplayName() string

func (*MinerSet) GetMinerTemplate

func (x *MinerSet) GetMinerTemplate() *MinerTemplate

func (*MinerSet) GetName

func (x *MinerSet) GetName() string

func (*MinerSet) GetReplicas

func (x *MinerSet) GetReplicas() int32

func (*MinerSet) GetUpdatedAt

func (x *MinerSet) GetUpdatedAt() *timestamppb.Timestamp

func (*MinerSet) ProtoMessage

func (*MinerSet) ProtoMessage()

func (*MinerSet) ProtoReflect

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

func (*MinerSet) Reset

func (x *MinerSet) Reset()

func (*MinerSet) String

func (x *MinerSet) String() string

func (*MinerSet) Validate

func (m *MinerSet) Validate() error

Validate checks the field values on MinerSet with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MinerSet) ValidateAll

func (m *MinerSet) ValidateAll() error

ValidateAll checks the field values on MinerSet with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MinerSetMultiError, or nil if none found.

type MinerSetMultiError

type MinerSetMultiError []error

MinerSetMultiError is an error wrapping multiple validation errors returned by MinerSet.ValidateAll() if the designated constraints aren't met.

func (MinerSetMultiError) AllErrors

func (m MinerSetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MinerSetMultiError) Error

func (m MinerSetMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MinerSetValidationError

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

MinerSetValidationError is the validation error returned by MinerSet.Validate if the designated constraints aren't met.

func (MinerSetValidationError) Cause

func (e MinerSetValidationError) Cause() error

Cause function returns cause value.

func (MinerSetValidationError) Error

func (e MinerSetValidationError) Error() string

Error satisfies the builtin error interface

func (MinerSetValidationError) ErrorName

func (e MinerSetValidationError) ErrorName() string

ErrorName returns error name.

func (MinerSetValidationError) Field

func (e MinerSetValidationError) Field() string

Field function returns field value.

func (MinerSetValidationError) Key

func (e MinerSetValidationError) Key() bool

Key function returns key value.

func (MinerSetValidationError) Reason

func (e MinerSetValidationError) Reason() string

Reason function returns reason value.

type MinerTemplate

type MinerTemplate struct {
	MinerType string `protobuf:"bytes,1,opt,name=minerType,proto3" json:"minerType,omitempty"`
	ChainName string `protobuf:"bytes,2,opt,name=chainName,proto3" json:"chainName,omitempty"`
	DataDir   string `protobuf:"bytes,3,opt,name=dataDir,proto3" json:"dataDir,omitempty"`
	// contains filtered or unexported fields
}

func (*MinerTemplate) Descriptor deprecated

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

Deprecated: Use MinerTemplate.ProtoReflect.Descriptor instead.

func (*MinerTemplate) GetChainName

func (x *MinerTemplate) GetChainName() string

func (*MinerTemplate) GetDataDir

func (x *MinerTemplate) GetDataDir() string

func (*MinerTemplate) GetMinerType

func (x *MinerTemplate) GetMinerType() string

func (*MinerTemplate) ProtoMessage

func (*MinerTemplate) ProtoMessage()

func (*MinerTemplate) ProtoReflect

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

func (*MinerTemplate) Reset

func (x *MinerTemplate) Reset()

func (*MinerTemplate) String

func (x *MinerTemplate) String() string

func (*MinerTemplate) Validate

func (m *MinerTemplate) Validate() error

Validate checks the field values on MinerTemplate with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MinerTemplate) ValidateAll

func (m *MinerTemplate) ValidateAll() error

ValidateAll checks the field values on MinerTemplate with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MinerTemplateMultiError, or nil if none found.

type MinerTemplateMultiError

type MinerTemplateMultiError []error

MinerTemplateMultiError is an error wrapping multiple validation errors returned by MinerTemplate.ValidateAll() if the designated constraints aren't met.

func (MinerTemplateMultiError) AllErrors

func (m MinerTemplateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MinerTemplateMultiError) Error

func (m MinerTemplateMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MinerTemplateValidationError

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

MinerTemplateValidationError is the validation error returned by MinerTemplate.Validate if the designated constraints aren't met.

func (MinerTemplateValidationError) Cause

Cause function returns cause value.

func (MinerTemplateValidationError) Error

Error satisfies the builtin error interface

func (MinerTemplateValidationError) ErrorName

func (e MinerTemplateValidationError) ErrorName() string

ErrorName returns error name.

func (MinerTemplateValidationError) Field

Field function returns field value.

func (MinerTemplateValidationError) Key

Key function returns key value.

func (MinerTemplateValidationError) Reason

Reason function returns reason value.

type MinerValidationError

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

MinerValidationError is the validation error returned by Miner.Validate if the designated constraints aren't met.

func (MinerValidationError) Cause

func (e MinerValidationError) Cause() error

Cause function returns cause value.

func (MinerValidationError) Error

func (e MinerValidationError) Error() string

Error satisfies the builtin error interface

func (MinerValidationError) ErrorName

func (e MinerValidationError) ErrorName() string

ErrorName returns error name.

func (MinerValidationError) Field

func (e MinerValidationError) Field() string

Field function returns field value.

func (MinerValidationError) Key

func (e MinerValidationError) Key() bool

Key function returns key value.

func (MinerValidationError) Reason

func (e MinerValidationError) Reason() string

Reason function returns reason value.

type ScaleMinerSetRequest

type ScaleMinerSetRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Replicas int32  `protobuf:"varint,2,opt,name=replicas,proto3" json:"replicas,omitempty"`
	// contains filtered or unexported fields
}

func (*ScaleMinerSetRequest) Descriptor deprecated

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

Deprecated: Use ScaleMinerSetRequest.ProtoReflect.Descriptor instead.

func (*ScaleMinerSetRequest) GetName

func (x *ScaleMinerSetRequest) GetName() string

func (*ScaleMinerSetRequest) GetReplicas

func (x *ScaleMinerSetRequest) GetReplicas() int32

func (*ScaleMinerSetRequest) ProtoMessage

func (*ScaleMinerSetRequest) ProtoMessage()

func (*ScaleMinerSetRequest) ProtoReflect

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

func (*ScaleMinerSetRequest) Reset

func (x *ScaleMinerSetRequest) Reset()

func (*ScaleMinerSetRequest) String

func (x *ScaleMinerSetRequest) String() string

func (*ScaleMinerSetRequest) Validate

func (m *ScaleMinerSetRequest) Validate() error

Validate checks the field values on ScaleMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ScaleMinerSetRequest) ValidateAll

func (m *ScaleMinerSetRequest) ValidateAll() error

ValidateAll checks the field values on ScaleMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ScaleMinerSetRequestMultiError, or nil if none found.

type ScaleMinerSetRequestMultiError

type ScaleMinerSetRequestMultiError []error

ScaleMinerSetRequestMultiError is an error wrapping multiple validation errors returned by ScaleMinerSetRequest.ValidateAll() if the designated constraints aren't met.

func (ScaleMinerSetRequestMultiError) AllErrors

func (m ScaleMinerSetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ScaleMinerSetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ScaleMinerSetRequestValidationError

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

ScaleMinerSetRequestValidationError is the validation error returned by ScaleMinerSetRequest.Validate if the designated constraints aren't met.

func (ScaleMinerSetRequestValidationError) Cause

Cause function returns cause value.

func (ScaleMinerSetRequestValidationError) Error

Error satisfies the builtin error interface

func (ScaleMinerSetRequestValidationError) ErrorName

ErrorName returns error name.

func (ScaleMinerSetRequestValidationError) Field

Field function returns field value.

func (ScaleMinerSetRequestValidationError) Key

Key function returns key value.

func (ScaleMinerSetRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedGatewayServer

type UnimplementedGatewayServer struct {
}

UnimplementedGatewayServer must be embedded to have forward compatible implementations.

func (UnimplementedGatewayServer) CreateMiner

func (UnimplementedGatewayServer) CreateMinerSet

func (UnimplementedGatewayServer) DeleteMiner

func (UnimplementedGatewayServer) DeleteMinerSet

func (UnimplementedGatewayServer) GetIdempotentToken

func (UnimplementedGatewayServer) GetMiner

func (UnimplementedGatewayServer) GetMinerSet

func (UnimplementedGatewayServer) GetVersion

func (UnimplementedGatewayServer) ListMiner

func (UnimplementedGatewayServer) ListMinerSet

func (UnimplementedGatewayServer) ScaleMinerSet

func (UnimplementedGatewayServer) UpdateMiner

func (UnimplementedGatewayServer) UpdateMinerSet

type UnsafeGatewayServer

type UnsafeGatewayServer interface {
	// contains filtered or unexported methods
}

UnsafeGatewayServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GatewayServer will result in compilation errors.

type UpdateMinerRequest

type UpdateMinerRequest struct {
	Name         string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	DisplayName  *string `protobuf:"bytes,2,opt,name=displayName,proto3,oneof" json:"displayName,omitempty"`
	DeletePolicy *string `protobuf:"bytes,3,opt,name=deletePolicy,proto3,oneof" json:"deletePolicy,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMinerRequest) Descriptor deprecated

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

Deprecated: Use UpdateMinerRequest.ProtoReflect.Descriptor instead.

func (*UpdateMinerRequest) GetDeletePolicy

func (x *UpdateMinerRequest) GetDeletePolicy() string

func (*UpdateMinerRequest) GetDisplayName

func (x *UpdateMinerRequest) GetDisplayName() string

func (*UpdateMinerRequest) GetName

func (x *UpdateMinerRequest) GetName() string

func (*UpdateMinerRequest) ProtoMessage

func (*UpdateMinerRequest) ProtoMessage()

func (*UpdateMinerRequest) ProtoReflect

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

func (*UpdateMinerRequest) Reset

func (x *UpdateMinerRequest) Reset()

func (*UpdateMinerRequest) String

func (x *UpdateMinerRequest) String() string

func (*UpdateMinerRequest) Validate

func (m *UpdateMinerRequest) Validate() error

Validate checks the field values on UpdateMinerRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateMinerRequest) ValidateAll

func (m *UpdateMinerRequest) ValidateAll() error

ValidateAll checks the field values on UpdateMinerRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateMinerRequestMultiError, or nil if none found.

type UpdateMinerRequestMultiError

type UpdateMinerRequestMultiError []error

UpdateMinerRequestMultiError is an error wrapping multiple validation errors returned by UpdateMinerRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateMinerRequestMultiError) AllErrors

func (m UpdateMinerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateMinerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateMinerRequestValidationError

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

UpdateMinerRequestValidationError is the validation error returned by UpdateMinerRequest.Validate if the designated constraints aren't met.

func (UpdateMinerRequestValidationError) Cause

Cause function returns cause value.

func (UpdateMinerRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateMinerRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateMinerRequestValidationError) Field

Field function returns field value.

func (UpdateMinerRequestValidationError) Key

Key function returns key value.

func (UpdateMinerRequestValidationError) Reason

Reason function returns reason value.

type UpdateMinerSetRequest

type UpdateMinerSetRequest struct {
	Name         string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	DisplayName  *string `protobuf:"bytes,2,opt,name=displayName,proto3,oneof" json:"displayName,omitempty"`
	DeletePolicy *string `protobuf:"bytes,3,opt,name=deletePolicy,proto3,oneof" json:"deletePolicy,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMinerSetRequest) Descriptor deprecated

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

Deprecated: Use UpdateMinerSetRequest.ProtoReflect.Descriptor instead.

func (*UpdateMinerSetRequest) GetDeletePolicy

func (x *UpdateMinerSetRequest) GetDeletePolicy() string

func (*UpdateMinerSetRequest) GetDisplayName

func (x *UpdateMinerSetRequest) GetDisplayName() string

func (*UpdateMinerSetRequest) GetName

func (x *UpdateMinerSetRequest) GetName() string

func (*UpdateMinerSetRequest) ProtoMessage

func (*UpdateMinerSetRequest) ProtoMessage()

func (*UpdateMinerSetRequest) ProtoReflect

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

func (*UpdateMinerSetRequest) Reset

func (x *UpdateMinerSetRequest) Reset()

func (*UpdateMinerSetRequest) String

func (x *UpdateMinerSetRequest) String() string

func (*UpdateMinerSetRequest) Validate

func (m *UpdateMinerSetRequest) Validate() error

Validate checks the field values on UpdateMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateMinerSetRequest) ValidateAll

func (m *UpdateMinerSetRequest) ValidateAll() error

ValidateAll checks the field values on UpdateMinerSetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateMinerSetRequestMultiError, or nil if none found.

type UpdateMinerSetRequestMultiError

type UpdateMinerSetRequestMultiError []error

UpdateMinerSetRequestMultiError is an error wrapping multiple validation errors returned by UpdateMinerSetRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateMinerSetRequestMultiError) AllErrors

func (m UpdateMinerSetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateMinerSetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateMinerSetRequestValidationError

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

UpdateMinerSetRequestValidationError is the validation error returned by UpdateMinerSetRequest.Validate if the designated constraints aren't met.

func (UpdateMinerSetRequestValidationError) Cause

Cause function returns cause value.

func (UpdateMinerSetRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateMinerSetRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateMinerSetRequestValidationError) Field

Field function returns field value.

func (UpdateMinerSetRequestValidationError) Key

Key function returns key value.

func (UpdateMinerSetRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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