proto + grpc handler
This commit is contained in:
parent
a72002540d
commit
37041fc8fe
15 changed files with 942 additions and 14 deletions
11
internal/convert/handler.go
Normal file
11
internal/convert/handler.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package convert
|
||||
|
||||
type Handler struct {
|
||||
*service
|
||||
}
|
||||
|
||||
func NewHandler() *Handler {
|
||||
return &Handler{
|
||||
service: newService(),
|
||||
}
|
||||
}
|
||||
15
internal/convert/service.go
Normal file
15
internal/convert/service.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package convert
|
||||
|
||||
type service struct{}
|
||||
|
||||
func newService() *service {
|
||||
return &service{}
|
||||
}
|
||||
|
||||
func (s *service) ConvertToJpeg() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *service) MakeThumbnail() error {
|
||||
return nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue