app

package
v0.0.0-...-cd93cf5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplication

func NewApplication(oauth OAuth, logger log.Logger, session SessionService, publicShares PublicSharesService) *application

Types

type OAuth

type OAuth struct {
	TokenURL     string
	ClientID     string
	ClientSecret string
}

type PublicSharesService

type PublicSharesService interface {
	IsPathAvail(path string) (bool, error)
	CreateShare(req *service.CreateShare) (string, error)
	GetShare(path string) (*service.Share, error)
	GetAllUserShares(githubUserID uint64) ([]service.Share, error)
	RemoveShare(path string, githubUserID uint64) error
}

type SessionService

type SessionService interface {
	NewSession(githubUserID uint64) (string, error)
	IsSessionValid(session string) (uint64, error)
	RemoveSession(session string) error
}

Jump to

Keyboard shortcuts

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