Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer)
- func RegisterServer(s grpc.ServiceRegistrar, serverAddr string)
- type FileServerInfo
- func (*FileServerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FileServerInfo) GetDestPath() string
- func (x *FileServerInfo) GetPushAddr() string
- func (x *FileServerInfo) GetQueryAddr() string
- func (x *FileServerInfo) GetServerAddr() string
- func (x *FileServerInfo) GetSourcePath() string
- func (*FileServerInfo) ProtoMessage()
- func (x *FileServerInfo) ProtoReflect() protoreflect.Message
- func (x *FileServerInfo) Reset()
- func (x *FileServerInfo) String() string
- type InfoServiceClient
- type InfoServiceServer
- type UnimplementedInfoServiceServer
- type UnsafeInfoServiceServer
Constants ¶
const (
InfoService_GetInfo_FullMethodName = "/info.InfoService/GetInfo"
)
Variables ¶
var File_api_proto_info_proto protoreflect.FileDescriptor
var InfoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "info.InfoService", HandlerType: (*InfoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetInfo", Handler: _InfoService_GetInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/proto/info.proto", }
InfoService_ServiceDesc is the grpc.ServiceDesc for InfoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInfoServiceServer ¶
func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer)
func RegisterServer ¶
func RegisterServer(s grpc.ServiceRegistrar, serverAddr string)
RegisterServer register the info server
Types ¶
type FileServerInfo ¶
type FileServerInfo struct { // ServerAddr the server running address ServerAddr string `protobuf:"bytes,1,opt,name=server_addr,json=serverAddr,proto3" json:"server_addr,omitempty"` // SourcePath the source base path of the file server SourcePath string `protobuf:"bytes,2,opt,name=source_path,json=sourcePath,proto3" json:"source_path,omitempty"` // DestPath the dest base path of the file server DestPath string `protobuf:"bytes,3,opt,name=dest_path,json=destPath,proto3" json:"dest_path,omitempty"` // QueryAddr the query api address of the file server QueryAddr string `protobuf:"bytes,4,opt,name=query_addr,json=queryAddr,proto3" json:"query_addr,omitempty"` // PushAddr the push api address of the file server PushAddr string `protobuf:"bytes,5,opt,name=push_addr,json=pushAddr,proto3" json:"push_addr,omitempty"` // contains filtered or unexported fields }
FileServerInfo the file server basic info
func (*FileServerInfo) Descriptor
deprecated
func (*FileServerInfo) Descriptor() ([]byte, []int)
Deprecated: Use FileServerInfo.ProtoReflect.Descriptor instead.
func (*FileServerInfo) GetDestPath ¶
func (x *FileServerInfo) GetDestPath() string
func (*FileServerInfo) GetPushAddr ¶
func (x *FileServerInfo) GetPushAddr() string
func (*FileServerInfo) GetQueryAddr ¶
func (x *FileServerInfo) GetQueryAddr() string
func (*FileServerInfo) GetServerAddr ¶
func (x *FileServerInfo) GetServerAddr() string
func (*FileServerInfo) GetSourcePath ¶
func (x *FileServerInfo) GetSourcePath() string
func (*FileServerInfo) ProtoMessage ¶
func (*FileServerInfo) ProtoMessage()
func (*FileServerInfo) ProtoReflect ¶
func (x *FileServerInfo) ProtoReflect() protoreflect.Message
func (*FileServerInfo) Reset ¶
func (x *FileServerInfo) Reset()
func (*FileServerInfo) String ¶
func (x *FileServerInfo) String() string
type InfoServiceClient ¶
type InfoServiceClient interface { // GetInfo get the file server info GetInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FileServerInfo, error) }
InfoServiceClient is the client API for InfoService 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 NewInfoServiceClient ¶
func NewInfoServiceClient(cc grpc.ClientConnInterface) InfoServiceClient
type InfoServiceServer ¶
type InfoServiceServer interface { // GetInfo get the file server info GetInfo(context.Context, *emptypb.Empty) (*FileServerInfo, error) // contains filtered or unexported methods }
InfoServiceServer is the server API for InfoService service. All implementations must embed UnimplementedInfoServiceServer for forward compatibility
type UnimplementedInfoServiceServer ¶
type UnimplementedInfoServiceServer struct { }
UnimplementedInfoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedInfoServiceServer) GetInfo ¶
func (UnimplementedInfoServiceServer) GetInfo(context.Context, *emptypb.Empty) (*FileServerInfo, error)
type UnsafeInfoServiceServer ¶
type UnsafeInfoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeInfoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InfoServiceServer will result in compilation errors.