service

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package service service for twitter API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(ctx context.Context)

Types

type Type

type Type struct {
	// contains filtered or unexported fields
}
var Instance *Type

func New

func New(tweet *dao.Tweets, search dao.Search) *Type

func (*Type) LoadThreadByTweetID

func (s *Type) LoadThreadByTweetID(id string) (tweets []*model.Tweet, err error)

func (*Type) LoadTweetByTwitterID

func (s *Type) LoadTweetByTwitterID(id string) (tweet *model.Tweet, err error)

func (*Type) LoadTweetReplys

func (s *Type) LoadTweetReplys(tweetID string) (replys []*model.Tweet, err error)

func (*Type) LoadTweets

func (s *Type) LoadTweets(cfg *dto.LoadTweetArgs) (results []*model.Tweet, err error)

func (*Type) LoadUserByID

func (s *Type) LoadUserByID(id string) (user *model.User, err error)

Jump to

Keyboard shortcuts

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