cachefs

package
v0.0.0-...-d260292 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CachefsCache_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cachefs.CachefsCache",
	HandlerType: (*CachefsCacheServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ExchangeTracker",
			Handler:    _CachefsCache_ExchangeTracker_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Load",
			Handler:       _CachefsCache_Load_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "pkg/rpc/cachefs/cachefs.proto",
}

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

View Source
var File_pkg_rpc_cachefs_cachefs_proto protoreflect.FileDescriptor

Functions

func RegisterCachefsCacheServer

func RegisterCachefsCacheServer(s grpc.ServiceRegistrar, srv CachefsCacheServer)

Types

type CachefsCacheClient

type CachefsCacheClient interface {
	Load(ctx context.Context, opts ...grpc.CallOption) (CachefsCache_LoadClient, error)
	ExchangeTracker(ctx context.Context, in *ExchangeTrackerRequest, opts ...grpc.CallOption) (*ExchangeTrackerResponse, error)
}

CachefsCacheClient is the client API for CachefsCache 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.

type CachefsCacheServer

type CachefsCacheServer interface {
	Load(CachefsCache_LoadServer) error
	ExchangeTracker(context.Context, *ExchangeTrackerRequest) (*ExchangeTrackerResponse, error)
}

CachefsCacheServer is the server API for CachefsCache service. All implementations should embed UnimplementedCachefsCacheServer for forward compatibility

type CachefsCache_LoadClient

type CachefsCache_LoadClient interface {
	Send(*LoadRequest) error
	Recv() (*LoadResponse, error)
	grpc.ClientStream
}

type CachefsCache_LoadServer

type CachefsCache_LoadServer interface {
	Send(*LoadResponse) error
	Recv() (*LoadRequest, error)
	grpc.ServerStream
}

type ExchangeTrackerRequest

type ExchangeTrackerRequest struct {
	SerfGroup string `protobuf:"bytes,1,opt,name=serf_group,json=serfGroup,proto3" json:"serf_group,omitempty"`
	MetaInfo  []byte `protobuf:"bytes,2,opt,name=meta_info,json=metaInfo,proto3" json:"meta_info,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeTrackerRequest) Descriptor deprecated

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

Deprecated: Use ExchangeTrackerRequest.ProtoReflect.Descriptor instead.

func (*ExchangeTrackerRequest) GetMetaInfo

func (x *ExchangeTrackerRequest) GetMetaInfo() []byte

func (*ExchangeTrackerRequest) GetSerfGroup

func (x *ExchangeTrackerRequest) GetSerfGroup() string

func (*ExchangeTrackerRequest) ProtoMessage

func (*ExchangeTrackerRequest) ProtoMessage()

func (*ExchangeTrackerRequest) ProtoReflect

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

func (*ExchangeTrackerRequest) Reset

func (x *ExchangeTrackerRequest) Reset()

func (*ExchangeTrackerRequest) String

func (x *ExchangeTrackerRequest) String() string

func (*ExchangeTrackerRequest) Validate

func (m *ExchangeTrackerRequest) Validate() error

Validate checks the field values on ExchangeTrackerRequest 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 (*ExchangeTrackerRequest) ValidateAll

func (m *ExchangeTrackerRequest) ValidateAll() error

ValidateAll checks the field values on ExchangeTrackerRequest 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 ExchangeTrackerRequestMultiError, or nil if none found.

type ExchangeTrackerRequestMultiError

type ExchangeTrackerRequestMultiError []error

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

func (ExchangeTrackerRequestMultiError) AllErrors

func (m ExchangeTrackerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExchangeTrackerRequestMultiError) Error

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

type ExchangeTrackerRequestValidationError

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

ExchangeTrackerRequestValidationError is the validation error returned by ExchangeTrackerRequest.Validate if the designated constraints aren't met.

func (ExchangeTrackerRequestValidationError) Cause

Cause function returns cause value.

func (ExchangeTrackerRequestValidationError) Error

Error satisfies the builtin error interface

func (ExchangeTrackerRequestValidationError) ErrorName

ErrorName returns error name.

func (ExchangeTrackerRequestValidationError) Field

Field function returns field value.

func (ExchangeTrackerRequestValidationError) Key

Key function returns key value.

func (ExchangeTrackerRequestValidationError) Reason

Reason function returns reason value.

type ExchangeTrackerResponse

type ExchangeTrackerResponse struct {
	MetaInfo []byte `protobuf:"bytes,1,opt,name=meta_info,json=metaInfo,proto3" json:"meta_info,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeTrackerResponse) Descriptor deprecated

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

Deprecated: Use ExchangeTrackerResponse.ProtoReflect.Descriptor instead.

func (*ExchangeTrackerResponse) GetMetaInfo

func (x *ExchangeTrackerResponse) GetMetaInfo() []byte

func (*ExchangeTrackerResponse) ProtoMessage

func (*ExchangeTrackerResponse) ProtoMessage()

func (*ExchangeTrackerResponse) ProtoReflect

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

func (*ExchangeTrackerResponse) Reset

func (x *ExchangeTrackerResponse) Reset()

func (*ExchangeTrackerResponse) String

func (x *ExchangeTrackerResponse) String() string

func (*ExchangeTrackerResponse) Validate

func (m *ExchangeTrackerResponse) Validate() error

Validate checks the field values on ExchangeTrackerResponse 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 (*ExchangeTrackerResponse) ValidateAll

func (m *ExchangeTrackerResponse) ValidateAll() error

ValidateAll checks the field values on ExchangeTrackerResponse 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 ExchangeTrackerResponseMultiError, or nil if none found.

type ExchangeTrackerResponseMultiError

type ExchangeTrackerResponseMultiError []error

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

func (ExchangeTrackerResponseMultiError) AllErrors

func (m ExchangeTrackerResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExchangeTrackerResponseMultiError) Error

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

type ExchangeTrackerResponseValidationError

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

ExchangeTrackerResponseValidationError is the validation error returned by ExchangeTrackerResponse.Validate if the designated constraints aren't met.

func (ExchangeTrackerResponseValidationError) Cause

Cause function returns cause value.

func (ExchangeTrackerResponseValidationError) Error

Error satisfies the builtin error interface

func (ExchangeTrackerResponseValidationError) ErrorName

ErrorName returns error name.

func (ExchangeTrackerResponseValidationError) Field

Field function returns field value.

func (ExchangeTrackerResponseValidationError) Key

Key function returns key value.

func (ExchangeTrackerResponseValidationError) Reason

Reason function returns reason value.

type LoadRequest

type LoadRequest struct {

	// target path is within 4096
	Target   string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	BlockNum uint32 `protobuf:"varint,2,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"`
	// less than or equal to largest block size
	Len uint32 `protobuf:"varint,3,opt,name=len,proto3" json:"len,omitempty"`
	// only support 4M 8M 16M 32M 64M 128M block sizes
	BlockSize        uint32 `protobuf:"varint,4,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
	SerfGroup        string `protobuf:"bytes,5,opt,name=serf_group,json=serfGroup,proto3" json:"serf_group,omitempty"`
	CacheRootGroup   string `protobuf:"bytes,6,opt,name=cache_root_group,json=cacheRootGroup,proto3" json:"cache_root_group,omitempty"`
	SupportsFallback bool   `protobuf:"varint,7,opt,name=supports_fallback,json=supportsFallback,proto3" json:"supports_fallback,omitempty"`
	UseFallback      bool   `protobuf:"varint,8,opt,name=use_fallback,json=useFallback,proto3" json:"use_fallback,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadRequest) Descriptor deprecated

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

Deprecated: Use LoadRequest.ProtoReflect.Descriptor instead.

func (*LoadRequest) GetBlockNum

func (x *LoadRequest) GetBlockNum() uint32

func (*LoadRequest) GetBlockSize

func (x *LoadRequest) GetBlockSize() uint32

func (*LoadRequest) GetCacheRootGroup

func (x *LoadRequest) GetCacheRootGroup() string

func (*LoadRequest) GetLen

func (x *LoadRequest) GetLen() uint32

func (*LoadRequest) GetSerfGroup

func (x *LoadRequest) GetSerfGroup() string

func (*LoadRequest) GetSupportsFallback

func (x *LoadRequest) GetSupportsFallback() bool

func (*LoadRequest) GetTarget

func (x *LoadRequest) GetTarget() string

func (*LoadRequest) GetUseFallback

func (x *LoadRequest) GetUseFallback() bool

func (*LoadRequest) ProtoMessage

func (*LoadRequest) ProtoMessage()

func (*LoadRequest) ProtoReflect

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

func (*LoadRequest) Reset

func (x *LoadRequest) Reset()

func (*LoadRequest) String

func (x *LoadRequest) String() string

func (*LoadRequest) Validate

func (m *LoadRequest) Validate() error

Validate checks the field values on LoadRequest 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 (*LoadRequest) ValidateAll

func (m *LoadRequest) ValidateAll() error

ValidateAll checks the field values on LoadRequest 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 LoadRequestMultiError, or nil if none found.

type LoadRequestMultiError

type LoadRequestMultiError []error

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

func (LoadRequestMultiError) AllErrors

func (m LoadRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoadRequestMultiError) Error

func (m LoadRequestMultiError) Error() string

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

type LoadRequestValidationError

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

LoadRequestValidationError is the validation error returned by LoadRequest.Validate if the designated constraints aren't met.

func (LoadRequestValidationError) Cause

Cause function returns cause value.

func (LoadRequestValidationError) Error

Error satisfies the builtin error interface

func (LoadRequestValidationError) ErrorName

func (e LoadRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoadRequestValidationError) Field

Field function returns field value.

func (LoadRequestValidationError) Key

Key function returns key value.

func (LoadRequestValidationError) Reason

Reason function returns reason value.

type LoadResponse

type LoadResponse struct {
	Data         []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Addr         string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Hash         string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	ReqId        uint64 `protobuf:"varint,4,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
	SvcId        uint32 `protobuf:"varint,5,opt,name=svc_id,json=svcId,proto3" json:"svc_id,omitempty"`
	FallbackAddr string `protobuf:"bytes,6,opt,name=fallback_addr,json=fallbackAddr,proto3" json:"fallback_addr,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadResponse) Descriptor deprecated

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

Deprecated: Use LoadResponse.ProtoReflect.Descriptor instead.

func (*LoadResponse) GetAddr

func (x *LoadResponse) GetAddr() string

func (*LoadResponse) GetData

func (x *LoadResponse) GetData() []byte

func (*LoadResponse) GetFallbackAddr

func (x *LoadResponse) GetFallbackAddr() string

func (*LoadResponse) GetHash

func (x *LoadResponse) GetHash() string

func (*LoadResponse) GetReqId

func (x *LoadResponse) GetReqId() uint64

func (*LoadResponse) GetSvcId

func (x *LoadResponse) GetSvcId() uint32

func (*LoadResponse) ProtoMessage

func (*LoadResponse) ProtoMessage()

func (*LoadResponse) ProtoReflect

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

func (*LoadResponse) Reset

func (x *LoadResponse) Reset()

func (*LoadResponse) String

func (x *LoadResponse) String() string

func (*LoadResponse) Validate

func (m *LoadResponse) Validate() error

Validate checks the field values on LoadResponse 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 (*LoadResponse) ValidateAll

func (m *LoadResponse) ValidateAll() error

ValidateAll checks the field values on LoadResponse 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 LoadResponseMultiError, or nil if none found.

type LoadResponseMultiError

type LoadResponseMultiError []error

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

func (LoadResponseMultiError) AllErrors

func (m LoadResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoadResponseMultiError) Error

func (m LoadResponseMultiError) Error() string

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

type LoadResponseValidationError

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

LoadResponseValidationError is the validation error returned by LoadResponse.Validate if the designated constraints aren't met.

func (LoadResponseValidationError) Cause

Cause function returns cause value.

func (LoadResponseValidationError) Error

Error satisfies the builtin error interface

func (LoadResponseValidationError) ErrorName

func (e LoadResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoadResponseValidationError) Field

Field function returns field value.

func (LoadResponseValidationError) Key

Key function returns key value.

func (LoadResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedCachefsCacheServer

type UnimplementedCachefsCacheServer struct {
}

UnimplementedCachefsCacheServer should be embedded to have forward compatible implementations.

func (UnimplementedCachefsCacheServer) ExchangeTracker

func (UnimplementedCachefsCacheServer) Load

type UnsafeCachefsCacheServer

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

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

Jump to

Keyboard shortcuts

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