api

package
v0.0.0-...-966265d Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSession

func GetSession(r *http.Request) *sessions.Session

func Init

func Init(store sessions.Store, selectedCommunitiesDAO dal.SelectedCommunitiesDAO)

func InitClientManager

func InitClientManager(maxAge time.Duration,
	outRequestTimeout time.Duration,
	likedPostsDAO dal.LikedPostsDAO)

func RegisterHandlers

func RegisterHandlers(r *mux.Router)

Types

type AtomClientManager

type AtomClientManager struct {
	// contains filtered or unexported fields
}

func ClientManager

func ClientManager() *AtomClientManager

func (*AtomClientManager) Get

func (mgr *AtomClientManager) Get(session *sessions.Session) *ClientInstance

Get returns an existing atom.Client.

func (*AtomClientManager) New

func (mgr *AtomClientManager) New(session *sessions.Session) (*ClientInstance, error)

New returns a new atom.Client.

func (*AtomClientManager) Stop

func (mgr *AtomClientManager) Stop()

Stop stops all qr login process

type ClientInstance

type ClientInstance struct {
	*atom.Client
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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