2024-10-04 09:15:48 +02:00
|
|
|
package service
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"git.espin.casa/albert/cml04-falcon-system/injector/types"
|
2024-10-04 09:38:25 +02:00
|
|
|
"git.espin.casa/albert/cml04-falcon-system/internal/publisher"
|
2024-10-04 09:15:48 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type IService interface {
|
2024-10-04 09:38:25 +02:00
|
|
|
Bundle(ctx context.Context, req *types.PostBundleReq) (res *types.PostBundleRes, err error)
|
2024-10-04 09:15:48 +02:00
|
|
|
}
|
|
|
|
|
2024-10-04 09:38:25 +02:00
|
|
|
type service struct {
|
|
|
|
pub publisher.Publisher
|
|
|
|
}
|
2024-10-04 09:15:48 +02:00
|
|
|
|
|
|
|
// Bundle implements IService.
|
2024-10-04 09:38:25 +02:00
|
|
|
func (s *service) Bundle(ctx context.Context, req *types.PostBundleReq) (res *types.PostBundleRes, err error) {
|
|
|
|
return &types.PostBundleRes{}, nil
|
2024-10-04 09:15:48 +02:00
|
|
|
}
|
|
|
|
|
2024-10-04 09:38:25 +02:00
|
|
|
func New(pub publisher.Publisher) IService {
|
|
|
|
return &service{
|
|
|
|
pub: pub,
|
|
|
|
}
|
2024-10-04 09:15:48 +02:00
|
|
|
}
|