Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterFtsApiServer(s grpc.ServiceRegistrar, srv FtsApiServer)
- type FtsApiClient
- type FtsApiServer
- type GetUploadFileUrlReq
- func (*GetUploadFileUrlReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUploadFileUrlReq) GetPrefix() string
- func (*GetUploadFileUrlReq) ProtoMessage()
- func (x *GetUploadFileUrlReq) ProtoReflect() protoreflect.Message
- func (x *GetUploadFileUrlReq) Reset()
- func (x *GetUploadFileUrlReq) String() string
- type GetUploadFileUrlRes
- func (*GetUploadFileUrlRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetUploadFileUrlRes) GetId() string
- func (x *GetUploadFileUrlRes) GetUrl() string
- func (*GetUploadFileUrlRes) ProtoMessage()
- func (x *GetUploadFileUrlRes) ProtoReflect() protoreflect.Message
- func (x *GetUploadFileUrlRes) Reset()
- func (x *GetUploadFileUrlRes) String() string
- type UnimplementedFtsApiServer
- type UnsafeFtsApiServer
Constants ¶
const (
FtsApi_GetUploadFileUrl_FullMethodName = "/api.v1alpha1.fts.FtsApi/GetUploadFileUrl"
)
Variables ¶
var File_api_v1alpha1_fts_service_proto protoreflect.FileDescriptor
var FtsApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1alpha1.fts.FtsApi", HandlerType: (*FtsApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUploadFileUrl", Handler: _FtsApi_GetUploadFileUrl_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1alpha1/fts/service.proto", }
FtsApi_ServiceDesc is the grpc.ServiceDesc for FtsApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFtsApiServer ¶
func RegisterFtsApiServer(s grpc.ServiceRegistrar, srv FtsApiServer)
Types ¶
type FtsApiClient ¶
type FtsApiClient interface {
GetUploadFileUrl(ctx context.Context, in *GetUploadFileUrlReq, opts ...grpc.CallOption) (*GetUploadFileUrlRes, error)
}
FtsApiClient is the client API for FtsApi 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 NewFtsApiClient ¶
func NewFtsApiClient(cc grpc.ClientConnInterface) FtsApiClient
type FtsApiServer ¶
type FtsApiServer interface { GetUploadFileUrl(context.Context, *GetUploadFileUrlReq) (*GetUploadFileUrlRes, error) // contains filtered or unexported methods }
FtsApiServer is the server API for FtsApi service. All implementations must embed UnimplementedFtsApiServer for forward compatibility.
type GetUploadFileUrlReq ¶
type GetUploadFileUrlReq struct { Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` // contains filtered or unexported fields }
func (*GetUploadFileUrlReq) Descriptor
deprecated
func (*GetUploadFileUrlReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUploadFileUrlReq.ProtoReflect.Descriptor instead.
func (*GetUploadFileUrlReq) GetPrefix ¶
func (x *GetUploadFileUrlReq) GetPrefix() string
func (*GetUploadFileUrlReq) ProtoMessage ¶
func (*GetUploadFileUrlReq) ProtoMessage()
func (*GetUploadFileUrlReq) ProtoReflect ¶
func (x *GetUploadFileUrlReq) ProtoReflect() protoreflect.Message
func (*GetUploadFileUrlReq) Reset ¶
func (x *GetUploadFileUrlReq) Reset()
func (*GetUploadFileUrlReq) String ¶
func (x *GetUploadFileUrlReq) String() string
type GetUploadFileUrlRes ¶
type GetUploadFileUrlRes struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // identifier so we can get this file back at a later point Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUploadFileUrlRes) Descriptor
deprecated
func (*GetUploadFileUrlRes) Descriptor() ([]byte, []int)
Deprecated: Use GetUploadFileUrlRes.ProtoReflect.Descriptor instead.
func (*GetUploadFileUrlRes) GetId ¶
func (x *GetUploadFileUrlRes) GetId() string
func (*GetUploadFileUrlRes) GetUrl ¶
func (x *GetUploadFileUrlRes) GetUrl() string
func (*GetUploadFileUrlRes) ProtoMessage ¶
func (*GetUploadFileUrlRes) ProtoMessage()
func (*GetUploadFileUrlRes) ProtoReflect ¶
func (x *GetUploadFileUrlRes) ProtoReflect() protoreflect.Message
func (*GetUploadFileUrlRes) Reset ¶
func (x *GetUploadFileUrlRes) Reset()
func (*GetUploadFileUrlRes) String ¶
func (x *GetUploadFileUrlRes) String() string
type UnimplementedFtsApiServer ¶
type UnimplementedFtsApiServer struct{}
UnimplementedFtsApiServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedFtsApiServer) GetUploadFileUrl ¶
func (UnimplementedFtsApiServer) GetUploadFileUrl(context.Context, *GetUploadFileUrlReq) (*GetUploadFileUrlRes, error)
type UnsafeFtsApiServer ¶
type UnsafeFtsApiServer interface {
// contains filtered or unexported methods
}
UnsafeFtsApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FtsApiServer will result in compilation errors.