twitter

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package twitter implements the twitter daemon service.

Index

Constants

This section is empty.

Variables

View Source
var ErrServiceClosed = errors.New("twitter: Service closed")

ErrServiceClosed is returned by the Service's Serve method after a call to Shutdown.

Functions

This section is empty.

Types

type Twitter

type Twitter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Twitter represents a Twitter service in the application

func New

func New(ctx context.Context, opts service.Options) (*Twitter, error)

New returns Twitter struct.

func (*Twitter) Serve

func (t *Twitter) Serve() error

Serve loop request direct messages from the Twitter API. Serve always returns a nil error.

func (*Twitter) Shutdown added in v0.16.0

func (t *Twitter) Shutdown() error

Shutdown shuts down the Twitter service, it always retuan a nil error.

Jump to

Keyboard shortcuts

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