Documentation
¶
Index ¶
- Variables
- func RegisterCachefsMetaServer(s grpc.ServiceRegistrar, srv CachefsMetaServer)
- type CachefsMetaClient
- type CachefsMetaServer
- type LoadMetaReq
- func (*LoadMetaReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoadMetaReq) GetAddr() string
- func (x *LoadMetaReq) GetSerfGroup() string
- func (*LoadMetaReq) ProtoMessage()
- func (x *LoadMetaReq) ProtoReflect() protoreflect.Message
- func (x *LoadMetaReq) Reset()
- func (x *LoadMetaReq) String() string
- func (m *LoadMetaReq) Validate() error
- func (m *LoadMetaReq) ValidateAll() error
- type LoadMetaReqMultiError
- type LoadMetaReqValidationError
- func (e LoadMetaReqValidationError) Cause() error
- func (e LoadMetaReqValidationError) Error() string
- func (e LoadMetaReqValidationError) ErrorName() string
- func (e LoadMetaReqValidationError) Field() string
- func (e LoadMetaReqValidationError) Key() bool
- func (e LoadMetaReqValidationError) Reason() string
- type LoadMetaRes
- func (*LoadMetaRes) Descriptor() ([]byte, []int)deprecated
- func (x *LoadMetaRes) GetMeta() []byte
- func (*LoadMetaRes) ProtoMessage()
- func (x *LoadMetaRes) ProtoReflect() protoreflect.Message
- func (x *LoadMetaRes) Reset()
- func (x *LoadMetaRes) String() string
- func (m *LoadMetaRes) Validate() error
- func (m *LoadMetaRes) ValidateAll() error
- type LoadMetaResMultiError
- type LoadMetaResValidationError
- func (e LoadMetaResValidationError) Cause() error
- func (e LoadMetaResValidationError) Error() string
- func (e LoadMetaResValidationError) ErrorName() string
- func (e LoadMetaResValidationError) Field() string
- func (e LoadMetaResValidationError) Key() bool
- func (e LoadMetaResValidationError) Reason() string
- type UnimplementedCachefsMetaServer
- type UnsafeCachefsMetaServer
Constants ¶
This section is empty.
Variables ¶
var CachefsMeta_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cachefs.CachefsMeta", HandlerType: (*CachefsMetaServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LoadMeta", Handler: _CachefsMeta_LoadMeta_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/rpc/meta/meta.proto", }
CachefsMeta_ServiceDesc is the grpc.ServiceDesc for CachefsMeta 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_meta_meta_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCachefsMetaServer ¶
func RegisterCachefsMetaServer(s grpc.ServiceRegistrar, srv CachefsMetaServer)
Types ¶
type CachefsMetaClient ¶
type CachefsMetaClient interface {
LoadMeta(ctx context.Context, in *LoadMetaReq, opts ...grpc.CallOption) (*LoadMetaRes, error)
}
CachefsMetaClient is the client API for CachefsMeta 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 NewCachefsMetaClient ¶
func NewCachefsMetaClient(cc grpc.ClientConnInterface) CachefsMetaClient
type CachefsMetaServer ¶
type CachefsMetaServer interface {
LoadMeta(context.Context, *LoadMetaReq) (*LoadMetaRes, error)
}
CachefsMetaServer is the server API for CachefsMeta service. All implementations should embed UnimplementedCachefsMetaServer for forward compatibility
type LoadMetaReq ¶
type LoadMetaReq struct {
SerfGroup string `protobuf:"bytes,1,opt,name=serf_group,json=serfGroup,proto3" json:"serf_group,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
// contains filtered or unexported fields
}
func (*LoadMetaReq) Descriptor
deprecated
func (*LoadMetaReq) Descriptor() ([]byte, []int)
Deprecated: Use LoadMetaReq.ProtoReflect.Descriptor instead.
func (*LoadMetaReq) GetAddr ¶
func (x *LoadMetaReq) GetAddr() string
func (*LoadMetaReq) GetSerfGroup ¶
func (x *LoadMetaReq) GetSerfGroup() string
func (*LoadMetaReq) ProtoMessage ¶
func (*LoadMetaReq) ProtoMessage()
func (*LoadMetaReq) ProtoReflect ¶
func (x *LoadMetaReq) ProtoReflect() protoreflect.Message
func (*LoadMetaReq) Reset ¶
func (x *LoadMetaReq) Reset()
func (*LoadMetaReq) String ¶
func (x *LoadMetaReq) String() string
func (*LoadMetaReq) Validate ¶
func (m *LoadMetaReq) Validate() error
Validate checks the field values on LoadMetaReq 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 (*LoadMetaReq) ValidateAll ¶
func (m *LoadMetaReq) ValidateAll() error
ValidateAll checks the field values on LoadMetaReq 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 LoadMetaReqMultiError, or nil if none found.
type LoadMetaReqMultiError ¶
type LoadMetaReqMultiError []error
LoadMetaReqMultiError is an error wrapping multiple validation errors returned by LoadMetaReq.ValidateAll() if the designated constraints aren't met.
func (LoadMetaReqMultiError) AllErrors ¶
func (m LoadMetaReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoadMetaReqMultiError) Error ¶
func (m LoadMetaReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoadMetaReqValidationError ¶
type LoadMetaReqValidationError struct {
// contains filtered or unexported fields
}
LoadMetaReqValidationError is the validation error returned by LoadMetaReq.Validate if the designated constraints aren't met.
func (LoadMetaReqValidationError) Cause ¶
func (e LoadMetaReqValidationError) Cause() error
Cause function returns cause value.
func (LoadMetaReqValidationError) Error ¶
func (e LoadMetaReqValidationError) Error() string
Error satisfies the builtin error interface
func (LoadMetaReqValidationError) ErrorName ¶
func (e LoadMetaReqValidationError) ErrorName() string
ErrorName returns error name.
func (LoadMetaReqValidationError) Field ¶
func (e LoadMetaReqValidationError) Field() string
Field function returns field value.
func (LoadMetaReqValidationError) Key ¶
func (e LoadMetaReqValidationError) Key() bool
Key function returns key value.
func (LoadMetaReqValidationError) Reason ¶
func (e LoadMetaReqValidationError) Reason() string
Reason function returns reason value.
type LoadMetaRes ¶
type LoadMetaRes struct {
Meta []byte `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
// contains filtered or unexported fields
}
func (*LoadMetaRes) Descriptor
deprecated
func (*LoadMetaRes) Descriptor() ([]byte, []int)
Deprecated: Use LoadMetaRes.ProtoReflect.Descriptor instead.
func (*LoadMetaRes) GetMeta ¶
func (x *LoadMetaRes) GetMeta() []byte
func (*LoadMetaRes) ProtoMessage ¶
func (*LoadMetaRes) ProtoMessage()
func (*LoadMetaRes) ProtoReflect ¶
func (x *LoadMetaRes) ProtoReflect() protoreflect.Message
func (*LoadMetaRes) Reset ¶
func (x *LoadMetaRes) Reset()
func (*LoadMetaRes) String ¶
func (x *LoadMetaRes) String() string
func (*LoadMetaRes) Validate ¶
func (m *LoadMetaRes) Validate() error
Validate checks the field values on LoadMetaRes 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 (*LoadMetaRes) ValidateAll ¶
func (m *LoadMetaRes) ValidateAll() error
ValidateAll checks the field values on LoadMetaRes 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 LoadMetaResMultiError, or nil if none found.
type LoadMetaResMultiError ¶
type LoadMetaResMultiError []error
LoadMetaResMultiError is an error wrapping multiple validation errors returned by LoadMetaRes.ValidateAll() if the designated constraints aren't met.
func (LoadMetaResMultiError) AllErrors ¶
func (m LoadMetaResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoadMetaResMultiError) Error ¶
func (m LoadMetaResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoadMetaResValidationError ¶
type LoadMetaResValidationError struct {
// contains filtered or unexported fields
}
LoadMetaResValidationError is the validation error returned by LoadMetaRes.Validate if the designated constraints aren't met.
func (LoadMetaResValidationError) Cause ¶
func (e LoadMetaResValidationError) Cause() error
Cause function returns cause value.
func (LoadMetaResValidationError) Error ¶
func (e LoadMetaResValidationError) Error() string
Error satisfies the builtin error interface
func (LoadMetaResValidationError) ErrorName ¶
func (e LoadMetaResValidationError) ErrorName() string
ErrorName returns error name.
func (LoadMetaResValidationError) Field ¶
func (e LoadMetaResValidationError) Field() string
Field function returns field value.
func (LoadMetaResValidationError) Key ¶
func (e LoadMetaResValidationError) Key() bool
Key function returns key value.
func (LoadMetaResValidationError) Reason ¶
func (e LoadMetaResValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCachefsMetaServer ¶
type UnimplementedCachefsMetaServer struct {
}
UnimplementedCachefsMetaServer should be embedded to have forward compatible implementations.
func (UnimplementedCachefsMetaServer) LoadMeta ¶
func (UnimplementedCachefsMetaServer) LoadMeta(context.Context, *LoadMetaReq) (*LoadMetaRes, error)
type UnsafeCachefsMetaServer ¶
type UnsafeCachefsMetaServer interface {
// contains filtered or unexported methods
}
UnsafeCachefsMetaServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CachefsMetaServer will result in compilation errors.