services

package
v0.0.0-...-5f247e8 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterWebFlags

func RegisterWebFlags(f []cli.Flag) []cli.Flag

Types

type Features

type Features struct {
	Rate        string
	Connections int
}

type StandardClaims

type StandardClaims struct {
	Rate        string `json:"rate"`
	Connections int    `json:"connections"`
	Role        string `json:"role"`
	SessionID   string `json:"sessionID"`
	Domain      string `json:"domain"`
	jwt.StandardClaims
}

type SubscriptionType

type SubscriptionType string
const (
	SubscriptionTypeBasic SubscriptionType = "basic"
	SubscriptionTypePro   SubscriptionType = "pro"
	SubscriptionTypeUltra SubscriptionType = "ultra"
	SubscriptionTypeMega  SubscriptionType = "mega"
)

type Web

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

func NewWeb

func NewWeb(c *cli.Context) *Web

func (*Web) Close

func (s *Web) Close()

func (*Web) Serve

func (s *Web) Serve() error

Jump to

Keyboard shortcuts

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