feat: UploadImage is written

This commit is contained in:
Iron_Felix 2025-12-19 23:48:47 +03:00
parent 9affe90988
commit 858818c17e
4 changed files with 121 additions and 34 deletions

View file

@ -18,16 +18,16 @@ import (
// }
type Server struct {
db *sqlc.Queries
// publisher *rmq.Publisher
RPCclient *rmq.RPCClient
db *sqlc.Queries
ImageServerSocket string
RPCclient *rmq.RPCClient
}
func NewServer(db *sqlc.Queries, rpcclient *rmq.RPCClient) *Server {
func NewServer(db *sqlc.Queries, ImageServerSocket string, rpcclient *rmq.RPCClient) *Server {
return &Server{
db: db,
// publisher: publisher,
RPCclient: rpcclient,
db: db,
ImageServerSocket: ImageServerSocket,
RPCclient: rpcclient,
}
}