Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdate ¶
func CreateOrUpdate(ctx context.Context, detail *model.PollingDetail) (*model.PollingDetail, error)
CreateOrUpdate create a record or update exist record If revision and session_id is exist: update else:insert
func Get ¶
func Get(ctx context.Context, detail *model.PollingDetail) ([]*model.PollingDetail, error)
Get is to get a track data
Types ¶
type Service ¶
type Service struct { }
Service is the implementation
func (*Service) CreateOrUpdate ¶
func (s *Service) CreateOrUpdate(ctx context.Context, detail *model.PollingDetail) (*model.PollingDetail, error)
CreateOrUpdate create or update a track data
func (*Service) GetPollingDetail ¶
func (s *Service) GetPollingDetail(ctx context.Context, detail *model.PollingDetail) ([]*model.PollingDetail, error)
GetPollingDetail get a track data
Click to show internal directories.
Click to hide internal directories.