vpnconfig

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRandomConfig

func CreateRandomConfig(ctx context.Context, _ uuid.UUID, configType string) (*models.VPNConfig, string, error)

func DeleteRandomUser

func DeleteRandomUser() error

func DeleteUser

func DeleteUser(ctx context.Context, logger *slog.Logger, opts *core.Options, brigadeID uuid.UUID, userID uuid.UUID) (int, error)

func GreateUser

func GreateUser(ctx context.Context, logger *slog.Logger, opts *core.Options,
	brigadeID uuid.UUID, configType string,
) (*models.VPNConfig, int, error)

Types

type ConfigRequest

type ConfigRequest struct {
	Configs []string `json:"configs"`
}

type SocketDeleteUser added in v1.9.15

type SocketDeleteUser struct {
	FreeSlots int `json:"free_slots"`
}

type SocketNewUser

type SocketNewUser struct {
	ID        uuid.UUID          `json:"id"`
	Name      string             `json:"name"`
	Domain    string             `json:"domain"`
	Configs   shuffler.VPNConfig `json:"configs"`
	FreeSlots int                `json:"free_slots"`
}

Jump to

Keyboard shortcuts

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