server

package
v0.0.0-...-e9c30ff Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 91 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, options Options) (*grpcServer, error)

NewServer returns a new JungleTVServer

Types

type Options

type Options struct {
	Log         *log.Logger
	StatsClient *statsd.Client

	Wallet                *wallet.Wallet
	OAuthManager          *oauth.Manager
	RepresentativeAddress string

	JWTManager         *auth.JWTManager
	AuthInterceptor    *authinterceptor.Interceptor
	VersionInterceptor *version.VersionInterceptor

	TicketCheckPeriod time.Duration
	IPCheckEndpoint   string
	YoutubeAPIkey     string
	RaffleSecretKey   string

	ModLogWebhook string

	SegchaClient    segchaproto.SegchaClient
	CaptchaImageDB  *segcha.ImageDatabase
	CaptchaFontPath string

	AppRunner           *apprunner.AppRunner
	ConfigManager       *configurationmanager.Manager
	NotificationManager *notificationmanager.Manager

	AutoEnqueueVideoListFile string
	QueueFile                string

	TypeScriptTypeDefinitionsFile string

	TenorAPIKey string

	WebsiteURL string

	NanswapAPIKey string

	TurnstileSecretKey string

	PrivilegedLabUserSecretKey string
}

Options contains the required options to start the server

Jump to

Keyboard shortcuts

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