Documentation ¶
Index ¶
- type Service
- func (s *Service) CheckDid(did string) (ip, ft string)
- func (s *Service) Decrypt(src []byte, aesKey, aesIv string) (res []byte, err error)
- func (s *Service) ErrReport(ctx context.Context, req *model.ErrReport)
- func (s *Service) FlashSigned(params url.Values, secret string, now time.Time) (err error)
- func (s *Service) GenDid(ip string, now time.Time) string
- func (s *Service) Play(c context.Context, ...)
- func (s *Service) Report(c context.Context, ...) (err error)
- func (s *Service) SuccReport(ctx context.Context, req *model.SuccReport)
- func (s *Service) Verify(src []byte, aesSalt string, now time.Time) (p url.Values, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service service struct info.
func (*Service) FlashSigned ¶
FlashSigned flash Signed.
func (*Service) Play ¶
func (s *Service) Play(c context.Context, plat, aid, cid, part, mid, level, ftime, stime, did, ip, agent, buvid, cookieSid, refer, typeID, subType, sid, epid, playMode, platform, device, mobiAapp, autoPlay, session string)
Play send play count to kafka.
func (*Service) Report ¶
func (s *Service) Report(c context.Context, proStr, cidStr, tpStr, subType, realtimeStr, aidStr, midstr, sidStr, epidStr, dtStr, tsStr string) (err error)
Report report to history.
func (*Service) SuccReport ¶
func (s *Service) SuccReport(ctx context.Context, req *model.SuccReport)
SuccReport reports the success of calling the api "heartbeat/mobile"
Click to show internal directories.
Click to hide internal directories.