track

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL