-
Notifications
You must be signed in to change notification settings - Fork 22
/
options.go
27 lines (22 loc) · 1.05 KB
/
options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package portal
import (
"github.com/paroxity/portal/internal"
"github.com/paroxity/portal/session"
"github.com/sandertv/gophertunnel/minecraft"
)
// Options represents the options that control how the proxy should be set up. After the proxy has been
// instantiated, the options below are immutable unless instantiated again.
type Options struct {
// Logger represents the logger that will be used for the lifetime of the proxy.
Logger internal.Logger
// Address is the address that the proxy should run on. It should be in the format of "address:port".
Address string
// ListenConfig contains settings that can be changed for the listener. It can be used to change the MOTD
// and add resource packs etc.
ListenConfig minecraft.ListenConfig
// LoadBalancer is the method used to balance load across the servers on the proxy. It can be used to
// change which servers players connect to when they join the proxy.
LoadBalancer session.LoadBalancer
// Whitelist is used to limit the proxy to only allow certain players to join.
Whitelist session.Whitelist
}