server

package
v0.0.0-...-732ec5d Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 96 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

	RPCProxyTokensSecretKey []byte
	RPCProxyIPV4Endpoint    string
	RPCProxyIPV6Endpoint    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