Documentation
¶
Index ¶
- Variables
- func RegisterCachefsCacheServer(s grpc.ServiceRegistrar, srv CachefsCacheServer)
- type CachefsCacheClient
- type CachefsCacheServer
- type CachefsCache_LoadClient
- type CachefsCache_LoadServer
- type ExchangeTrackerRequest
- func (*ExchangeTrackerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeTrackerRequest) GetMetaInfo() []byte
- func (x *ExchangeTrackerRequest) GetSerfGroup() string
- func (*ExchangeTrackerRequest) ProtoMessage()
- func (x *ExchangeTrackerRequest) ProtoReflect() protoreflect.Message
- func (x *ExchangeTrackerRequest) Reset()
- func (x *ExchangeTrackerRequest) String() string
- func (m *ExchangeTrackerRequest) Validate() error
- func (m *ExchangeTrackerRequest) ValidateAll() error
- type ExchangeTrackerRequestMultiError
- type ExchangeTrackerRequestValidationError
- func (e ExchangeTrackerRequestValidationError) Cause() error
- func (e ExchangeTrackerRequestValidationError) Error() string
- func (e ExchangeTrackerRequestValidationError) ErrorName() string
- func (e ExchangeTrackerRequestValidationError) Field() string
- func (e ExchangeTrackerRequestValidationError) Key() bool
- func (e ExchangeTrackerRequestValidationError) Reason() string
- type ExchangeTrackerResponse
- func (*ExchangeTrackerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeTrackerResponse) GetMetaInfo() []byte
- func (*ExchangeTrackerResponse) ProtoMessage()
- func (x *ExchangeTrackerResponse) ProtoReflect() protoreflect.Message
- func (x *ExchangeTrackerResponse) Reset()
- func (x *ExchangeTrackerResponse) String() string
- func (m *ExchangeTrackerResponse) Validate() error
- func (m *ExchangeTrackerResponse) ValidateAll() error
- type ExchangeTrackerResponseMultiError
- type ExchangeTrackerResponseValidationError
- func (e ExchangeTrackerResponseValidationError) Cause() error
- func (e ExchangeTrackerResponseValidationError) Error() string
- func (e ExchangeTrackerResponseValidationError) ErrorName() string
- func (e ExchangeTrackerResponseValidationError) Field() string
- func (e ExchangeTrackerResponseValidationError) Key() bool
- func (e ExchangeTrackerResponseValidationError) Reason() string
- type LoadRequest
- func (*LoadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoadRequest) GetBlockNum() uint32
- func (x *LoadRequest) GetBlockSize() uint32
- func (x *LoadRequest) GetCacheRootGroup() string
- func (x *LoadRequest) GetLen() uint32
- func (x *LoadRequest) GetSerfGroup() string
- func (x *LoadRequest) GetSupportsFallback() bool
- func (x *LoadRequest) GetTarget() string
- func (x *LoadRequest) GetUseFallback() bool
- func (*LoadRequest) ProtoMessage()
- func (x *LoadRequest) ProtoReflect() protoreflect.Message
- func (x *LoadRequest) Reset()
- func (x *LoadRequest) String() string
- func (m *LoadRequest) Validate() error
- func (m *LoadRequest) ValidateAll() error
- type LoadRequestMultiError
- type LoadRequestValidationError
- func (e LoadRequestValidationError) Cause() error
- func (e LoadRequestValidationError) Error() string
- func (e LoadRequestValidationError) ErrorName() string
- func (e LoadRequestValidationError) Field() string
- func (e LoadRequestValidationError) Key() bool
- func (e LoadRequestValidationError) Reason() string
- type LoadResponse
- func (*LoadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoadResponse) GetAddr() string
- func (x *LoadResponse) GetData() []byte
- func (x *LoadResponse) GetFallbackAddr() string
- func (x *LoadResponse) GetHash() string
- func (x *LoadResponse) GetReqId() uint64
- func (x *LoadResponse) GetSvcId() uint32
- func (*LoadResponse) ProtoMessage()
- func (x *LoadResponse) ProtoReflect() protoreflect.Message
- func (x *LoadResponse) Reset()
- func (x *LoadResponse) String() string
- func (m *LoadResponse) Validate() error
- func (m *LoadResponse) ValidateAll() error
- type LoadResponseMultiError
- type LoadResponseValidationError
- func (e LoadResponseValidationError) Cause() error
- func (e LoadResponseValidationError) Error() string
- func (e LoadResponseValidationError) ErrorName() string
- func (e LoadResponseValidationError) Field() string
- func (e LoadResponseValidationError) Key() bool
- func (e LoadResponseValidationError) Reason() string
- type UnimplementedCachefsCacheServer
- type UnsafeCachefsCacheServer
Constants ¶
This section is empty.
Variables ¶
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)
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.
func NewCachefsCacheClient ¶
func NewCachefsCacheClient(cc grpc.ClientConnInterface) CachefsCacheClient
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 ¶
func (m ExchangeTrackerRequestMultiError) Error() string
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 ¶
func (e ExchangeTrackerRequestValidationError) Cause() error
Cause function returns cause value.
func (ExchangeTrackerRequestValidationError) Error ¶
func (e ExchangeTrackerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ExchangeTrackerRequestValidationError) ErrorName ¶
func (e ExchangeTrackerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ExchangeTrackerRequestValidationError) Field ¶
func (e ExchangeTrackerRequestValidationError) Field() string
Field function returns field value.
func (ExchangeTrackerRequestValidationError) Key ¶
func (e ExchangeTrackerRequestValidationError) Key() bool
Key function returns key value.
func (ExchangeTrackerRequestValidationError) Reason ¶
func (e ExchangeTrackerRequestValidationError) Reason() string
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 ¶
func (m ExchangeTrackerResponseMultiError) Error() string
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 ¶
func (e ExchangeTrackerResponseValidationError) Cause() error
Cause function returns cause value.
func (ExchangeTrackerResponseValidationError) Error ¶
func (e ExchangeTrackerResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ExchangeTrackerResponseValidationError) ErrorName ¶
func (e ExchangeTrackerResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ExchangeTrackerResponseValidationError) Field ¶
func (e ExchangeTrackerResponseValidationError) Field() string
Field function returns field value.
func (ExchangeTrackerResponseValidationError) Key ¶
func (e ExchangeTrackerResponseValidationError) Key() bool
Key function returns key value.
func (ExchangeTrackerResponseValidationError) Reason ¶
func (e ExchangeTrackerResponseValidationError) Reason() string
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 ¶
func (e LoadRequestValidationError) Cause() error
Cause function returns cause value.
func (LoadRequestValidationError) Error ¶
func (e LoadRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoadRequestValidationError) ErrorName ¶
func (e LoadRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoadRequestValidationError) Field ¶
func (e LoadRequestValidationError) Field() string
Field function returns field value.
func (LoadRequestValidationError) Key ¶
func (e LoadRequestValidationError) Key() bool
Key function returns key value.
func (LoadRequestValidationError) Reason ¶
func (e LoadRequestValidationError) Reason() string
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 ¶
func (e LoadResponseValidationError) Cause() error
Cause function returns cause value.
func (LoadResponseValidationError) Error ¶
func (e LoadResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoadResponseValidationError) ErrorName ¶
func (e LoadResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoadResponseValidationError) Field ¶
func (e LoadResponseValidationError) Field() string
Field function returns field value.
func (LoadResponseValidationError) Key ¶
func (e LoadResponseValidationError) Key() bool
Key function returns key value.
func (LoadResponseValidationError) Reason ¶
func (e LoadResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCachefsCacheServer ¶
type UnimplementedCachefsCacheServer struct {
}
UnimplementedCachefsCacheServer should be embedded to have forward compatible implementations.
func (UnimplementedCachefsCacheServer) ExchangeTracker ¶
func (UnimplementedCachefsCacheServer) ExchangeTracker(context.Context, *ExchangeTrackerRequest) (*ExchangeTrackerResponse, error)
func (UnimplementedCachefsCacheServer) Load ¶
func (UnimplementedCachefsCacheServer) Load(CachefsCache_LoadServer) error
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.