Documentation ¶
Index ¶
- Variables
- func ImageServiceClientType() reflect.Type
- func ImageServiceHandlerType() reflect.Type
- func ImageServiceServerType() reflect.Type
- func RegisterImageServiceHandler(r http.Router, srv ImageServiceHandler, opts ...http.HandleOption)
- func RegisterImageServiceImp(regester transport.Register, srv ImageServiceServer, ...)
- func RegisterImageServiceServer(s grpc1.ServiceRegistrar, srv ImageServiceServer, opts ...grpc1.HandleOption)
- func ServiceNames(svr ...string) []string
- func Types() []reflect.Type
- type ImageGetRequest
- func (*ImageGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImageGetRequest) GetImageIDOrImage() string
- func (m *ImageGetRequest) MarshalJSON() ([]byte, error)
- func (*ImageGetRequest) ProtoMessage()
- func (x *ImageGetRequest) ProtoReflect() protoreflect.Message
- func (x *ImageGetRequest) Reset()
- func (x *ImageGetRequest) String() string
- func (m *ImageGetRequest) UnmarshalJSON(b []byte) error
- func (m *ImageGetRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ImageGetRequest) Validate() error
- type ImageGetResponse
- func (*ImageGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImageGetResponse) GetData() *ImageGetResponseData
- func (m *ImageGetResponse) MarshalJSON() ([]byte, error)
- func (*ImageGetResponse) ProtoMessage()
- func (x *ImageGetResponse) ProtoReflect() protoreflect.Message
- func (x *ImageGetResponse) Reset()
- func (x *ImageGetResponse) String() string
- func (m *ImageGetResponse) UnmarshalJSON(b []byte) error
- func (m *ImageGetResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ImageGetResponse) Validate() error
- type ImageGetResponseData
- func (*ImageGetResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *ImageGetResponseData) GetCreatedAt() *timestamppb.Timestamp
- func (x *ImageGetResponseData) GetID() int64
- func (x *ImageGetResponseData) GetImage() string
- func (x *ImageGetResponseData) GetImageName() string
- func (x *ImageGetResponseData) GetImageTag() string
- func (x *ImageGetResponseData) GetReleaseID() string
- func (x *ImageGetResponseData) GetUpdatedAt() *timestamppb.Timestamp
- func (m *ImageGetResponseData) MarshalJSON() ([]byte, error)
- func (*ImageGetResponseData) ProtoMessage()
- func (x *ImageGetResponseData) ProtoReflect() protoreflect.Message
- func (x *ImageGetResponseData) Reset()
- func (x *ImageGetResponseData) String() string
- func (m *ImageGetResponseData) UnmarshalJSON(b []byte) error
- func (m *ImageGetResponseData) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ImageGetResponseData) Validate() error
- type ImageListRequest
- func (*ImageListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImageListRequest) GetPageNum() int64
- func (x *ImageListRequest) GetPageSize() int64
- func (m *ImageListRequest) MarshalJSON() ([]byte, error)
- func (*ImageListRequest) ProtoMessage()
- func (x *ImageListRequest) ProtoReflect() protoreflect.Message
- func (x *ImageListRequest) Reset()
- func (x *ImageListRequest) String() string
- func (m *ImageListRequest) UnmarshalJSON(b []byte) error
- func (m *ImageListRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ImageListRequest) Validate() error
- type ImageListResponse
- func (*ImageListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImageListResponse) GetData() *ImageListResponseData
- func (m *ImageListResponse) MarshalJSON() ([]byte, error)
- func (*ImageListResponse) ProtoMessage()
- func (x *ImageListResponse) ProtoReflect() protoreflect.Message
- func (x *ImageListResponse) Reset()
- func (x *ImageListResponse) String() string
- func (m *ImageListResponse) UnmarshalJSON(b []byte) error
- func (m *ImageListResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ImageListResponse) Validate() error
- type ImageListResponseData
- func (*ImageListResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *ImageListResponseData) GetList() []*ImageGetResponseData
- func (x *ImageListResponseData) GetTotal() int64
- func (m *ImageListResponseData) MarshalJSON() ([]byte, error)
- func (*ImageListResponseData) ProtoMessage()
- func (x *ImageListResponseData) ProtoReflect() protoreflect.Message
- func (x *ImageListResponseData) Reset()
- func (x *ImageListResponseData) String() string
- func (m *ImageListResponseData) UnmarshalJSON(b []byte) error
- func (m *ImageListResponseData) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ImageListResponseData) Validate() error
- type ImageServiceClient
- type ImageServiceHandler
- type ImageServiceServer
- type UnimplementedImageServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_image_proto protoreflect.FileDescriptor
Functions ¶
func ImageServiceHandlerType ¶
ImageServiceHandlerType .
func RegisterImageServiceHandler ¶
func RegisterImageServiceHandler(r http.Router, srv ImageServiceHandler, opts ...http.HandleOption)
RegisterImageServiceHandler register ImageServiceHandler to http.Router.
func RegisterImageServiceImp ¶
func RegisterImageServiceImp(regester transport.Register, srv ImageServiceServer, opts ...transport.ServiceOption)
RegisterImageServiceImp image.proto
func RegisterImageServiceServer ¶
func RegisterImageServiceServer(s grpc1.ServiceRegistrar, srv ImageServiceServer, opts ...grpc1.HandleOption)
Types ¶
type ImageGetRequest ¶
type ImageGetRequest struct { ImageIDOrImage string `protobuf:"bytes,1,opt,name=imageIDOrImage,proto3" json:"imageIDOrImage,omitempty"` // contains filtered or unexported fields }
ImageGetRequest image details api(GET /api/images/{imageId}),packing uesd
func (*ImageGetRequest) Descriptor
deprecated
func (*ImageGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImageGetRequest.ProtoReflect.Descriptor instead.
func (*ImageGetRequest) GetImageIDOrImage ¶
func (x *ImageGetRequest) GetImageIDOrImage() string
func (*ImageGetRequest) MarshalJSON ¶
func (m *ImageGetRequest) MarshalJSON() ([]byte, error)
ImageGetRequest implement json.Marshaler.
func (*ImageGetRequest) ProtoMessage ¶
func (*ImageGetRequest) ProtoMessage()
func (*ImageGetRequest) ProtoReflect ¶
func (x *ImageGetRequest) ProtoReflect() protoreflect.Message
func (*ImageGetRequest) Reset ¶
func (x *ImageGetRequest) Reset()
func (*ImageGetRequest) String ¶
func (x *ImageGetRequest) String() string
func (*ImageGetRequest) UnmarshalJSON ¶
func (m *ImageGetRequest) UnmarshalJSON(b []byte) error
ImageGetRequest implement json.Marshaler.
func (*ImageGetRequest) UnmarshalURLValues ¶
func (m *ImageGetRequest) UnmarshalURLValues(prefix string, values url.Values) error
ImageGetRequest implement urlenc.URLValuesUnmarshaler.
func (*ImageGetRequest) Validate ¶
func (this *ImageGetRequest) Validate() error
type ImageGetResponse ¶
type ImageGetResponse struct { Data *ImageGetResponseData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
ImageGetResponse image details api return data structure
func (*ImageGetResponse) Descriptor
deprecated
func (*ImageGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImageGetResponse.ProtoReflect.Descriptor instead.
func (*ImageGetResponse) GetData ¶
func (x *ImageGetResponse) GetData() *ImageGetResponseData
func (*ImageGetResponse) MarshalJSON ¶
func (m *ImageGetResponse) MarshalJSON() ([]byte, error)
ImageGetResponse implement json.Marshaler.
func (*ImageGetResponse) ProtoMessage ¶
func (*ImageGetResponse) ProtoMessage()
func (*ImageGetResponse) ProtoReflect ¶
func (x *ImageGetResponse) ProtoReflect() protoreflect.Message
func (*ImageGetResponse) Reset ¶
func (x *ImageGetResponse) Reset()
func (*ImageGetResponse) String ¶
func (x *ImageGetResponse) String() string
func (*ImageGetResponse) UnmarshalJSON ¶
func (m *ImageGetResponse) UnmarshalJSON(b []byte) error
ImageGetResponse implement json.Marshaler.
func (*ImageGetResponse) UnmarshalURLValues ¶
func (m *ImageGetResponse) UnmarshalURLValues(prefix string, values url.Values) error
ImageGetResponse implement urlenc.URLValuesUnmarshaler.
func (*ImageGetResponse) Validate ¶
func (this *ImageGetResponse) Validate() error
type ImageGetResponseData ¶
type ImageGetResponseData struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` ReleaseID string `protobuf:"bytes,2,opt,name=releaseID,proto3" json:"releaseID,omitempty"` ImageName string `protobuf:"bytes,3,opt,name=imageName,proto3" json:"imageName,omitempty"` ImageTag string `protobuf:"bytes,4,opt,name=imageTag,proto3" json:"imageTag,omitempty"` Image string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*ImageGetResponseData) Descriptor
deprecated
func (*ImageGetResponseData) Descriptor() ([]byte, []int)
Deprecated: Use ImageGetResponseData.ProtoReflect.Descriptor instead.
func (*ImageGetResponseData) GetCreatedAt ¶
func (x *ImageGetResponseData) GetCreatedAt() *timestamppb.Timestamp
func (*ImageGetResponseData) GetID ¶
func (x *ImageGetResponseData) GetID() int64
func (*ImageGetResponseData) GetImage ¶
func (x *ImageGetResponseData) GetImage() string
func (*ImageGetResponseData) GetImageName ¶
func (x *ImageGetResponseData) GetImageName() string
func (*ImageGetResponseData) GetImageTag ¶
func (x *ImageGetResponseData) GetImageTag() string
func (*ImageGetResponseData) GetReleaseID ¶
func (x *ImageGetResponseData) GetReleaseID() string
func (*ImageGetResponseData) GetUpdatedAt ¶
func (x *ImageGetResponseData) GetUpdatedAt() *timestamppb.Timestamp
func (*ImageGetResponseData) MarshalJSON ¶
func (m *ImageGetResponseData) MarshalJSON() ([]byte, error)
ImageGetResponseData implement json.Marshaler.
func (*ImageGetResponseData) ProtoMessage ¶
func (*ImageGetResponseData) ProtoMessage()
func (*ImageGetResponseData) ProtoReflect ¶
func (x *ImageGetResponseData) ProtoReflect() protoreflect.Message
func (*ImageGetResponseData) Reset ¶
func (x *ImageGetResponseData) Reset()
func (*ImageGetResponseData) String ¶
func (x *ImageGetResponseData) String() string
func (*ImageGetResponseData) UnmarshalJSON ¶
func (m *ImageGetResponseData) UnmarshalJSON(b []byte) error
ImageGetResponseData implement json.Marshaler.
func (*ImageGetResponseData) UnmarshalURLValues ¶
func (m *ImageGetResponseData) UnmarshalURLValues(prefix string, values url.Values) error
ImageGetResponseData implement urlenc.URLValuesUnmarshaler.
func (*ImageGetResponseData) Validate ¶
func (this *ImageGetResponseData) Validate() error
type ImageListRequest ¶
type ImageListRequest struct { PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` PageNum int64 `protobuf:"varint,2,opt,name=pageNum,proto3" json:"pageNum,omitempty"` // contains filtered or unexported fields }
ImageListRequestimage listAPI(GET /api/images)
func (*ImageListRequest) Descriptor
deprecated
func (*ImageListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImageListRequest.ProtoReflect.Descriptor instead.
func (*ImageListRequest) GetPageNum ¶
func (x *ImageListRequest) GetPageNum() int64
func (*ImageListRequest) GetPageSize ¶
func (x *ImageListRequest) GetPageSize() int64
func (*ImageListRequest) MarshalJSON ¶
func (m *ImageListRequest) MarshalJSON() ([]byte, error)
ImageListRequest implement json.Marshaler.
func (*ImageListRequest) ProtoMessage ¶
func (*ImageListRequest) ProtoMessage()
func (*ImageListRequest) ProtoReflect ¶
func (x *ImageListRequest) ProtoReflect() protoreflect.Message
func (*ImageListRequest) Reset ¶
func (x *ImageListRequest) Reset()
func (*ImageListRequest) String ¶
func (x *ImageListRequest) String() string
func (*ImageListRequest) UnmarshalJSON ¶
func (m *ImageListRequest) UnmarshalJSON(b []byte) error
ImageListRequest implement json.Marshaler.
func (*ImageListRequest) UnmarshalURLValues ¶
func (m *ImageListRequest) UnmarshalURLValues(prefix string, values url.Values) error
ImageListRequest implement urlenc.URLValuesUnmarshaler.
func (*ImageListRequest) Validate ¶
func (this *ImageListRequest) Validate() error
type ImageListResponse ¶
type ImageListResponse struct { Data *ImageListResponseData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
ImageListResponse image list api return data structure
func (*ImageListResponse) Descriptor
deprecated
func (*ImageListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImageListResponse.ProtoReflect.Descriptor instead.
func (*ImageListResponse) GetData ¶
func (x *ImageListResponse) GetData() *ImageListResponseData
func (*ImageListResponse) MarshalJSON ¶
func (m *ImageListResponse) MarshalJSON() ([]byte, error)
ImageListResponse implement json.Marshaler.
func (*ImageListResponse) ProtoMessage ¶
func (*ImageListResponse) ProtoMessage()
func (*ImageListResponse) ProtoReflect ¶
func (x *ImageListResponse) ProtoReflect() protoreflect.Message
func (*ImageListResponse) Reset ¶
func (x *ImageListResponse) Reset()
func (*ImageListResponse) String ¶
func (x *ImageListResponse) String() string
func (*ImageListResponse) UnmarshalJSON ¶
func (m *ImageListResponse) UnmarshalJSON(b []byte) error
ImageListResponse implement json.Marshaler.
func (*ImageListResponse) UnmarshalURLValues ¶
func (m *ImageListResponse) UnmarshalURLValues(prefix string, values url.Values) error
ImageListResponse implement urlenc.URLValuesUnmarshaler.
func (*ImageListResponse) Validate ¶
func (this *ImageListResponse) Validate() error
type ImageListResponseData ¶
type ImageListResponseData struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ImageGetResponseData `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
ImageListResponseData image list response data
func (*ImageListResponseData) Descriptor
deprecated
func (*ImageListResponseData) Descriptor() ([]byte, []int)
Deprecated: Use ImageListResponseData.ProtoReflect.Descriptor instead.
func (*ImageListResponseData) GetList ¶
func (x *ImageListResponseData) GetList() []*ImageGetResponseData
func (*ImageListResponseData) GetTotal ¶
func (x *ImageListResponseData) GetTotal() int64
func (*ImageListResponseData) MarshalJSON ¶
func (m *ImageListResponseData) MarshalJSON() ([]byte, error)
ImageListResponseData implement json.Marshaler.
func (*ImageListResponseData) ProtoMessage ¶
func (*ImageListResponseData) ProtoMessage()
func (*ImageListResponseData) ProtoReflect ¶
func (x *ImageListResponseData) ProtoReflect() protoreflect.Message
func (*ImageListResponseData) Reset ¶
func (x *ImageListResponseData) Reset()
func (*ImageListResponseData) String ¶
func (x *ImageListResponseData) String() string
func (*ImageListResponseData) UnmarshalJSON ¶
func (m *ImageListResponseData) UnmarshalJSON(b []byte) error
ImageListResponseData implement json.Marshaler.
func (*ImageListResponseData) UnmarshalURLValues ¶
func (m *ImageListResponseData) UnmarshalURLValues(prefix string, values url.Values) error
ImageListResponseData implement urlenc.URLValuesUnmarshaler.
func (*ImageListResponseData) Validate ¶
func (this *ImageListResponseData) Validate() error
type ImageServiceClient ¶
type ImageServiceClient interface { GetImage(ctx context.Context, in *ImageGetRequest, opts ...grpc.CallOption) (*ImageGetResponse, error) ListImage(ctx context.Context, in *ImageListRequest, opts ...grpc.CallOption) (*ImageListResponse, error) }
ImageServiceClient is the client API for ImageService 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 NewImageServiceClient ¶
func NewImageServiceClient(cc grpc1.ClientConnInterface) ImageServiceClient
type ImageServiceHandler ¶
type ImageServiceHandler interface { // GET /api/images/{imageIDOrImage} GetImage(context.Context, *ImageGetRequest) (*ImageGetResponse, error) // GET /api/images ListImage(context.Context, *ImageListRequest) (*ImageListResponse, error) }
ImageServiceHandler is the server API for ImageService service.
type ImageServiceServer ¶
type ImageServiceServer interface { GetImage(context.Context, *ImageGetRequest) (*ImageGetResponse, error) ListImage(context.Context, *ImageListRequest) (*ImageListResponse, error) }
ImageServiceServer is the server API for ImageService service. All implementations should embed UnimplementedImageServiceServer for forward compatibility
type UnimplementedImageServiceServer ¶
type UnimplementedImageServiceServer struct { }
UnimplementedImageServiceServer should be embedded to have forward compatible implementations.
func (*UnimplementedImageServiceServer) GetImage ¶
func (*UnimplementedImageServiceServer) GetImage(context.Context, *ImageGetRequest) (*ImageGetResponse, error)
func (*UnimplementedImageServiceServer) ListImage ¶
func (*UnimplementedImageServiceServer) ListImage(context.Context, *ImageListRequest) (*ImageListResponse, error)