Documentation ¶
Index ¶
- Constants
- Variables
- type Action
- type AuthType
- type C
- type Callback
- type D
- type Event
- type EventID
- type Metadata
- type Page
- type PageMode
- type PageOption
- type PageOptions
- type PagePath
- type Perm
- type Route
- type Router
- func (r *Router) Back() (page Page)
- func (r *Router) Emit(event Event)
- func (r *Router) Event() <-chan Event
- func (r *Router) Goto(route Route)
- func (r *Router) HideModal(gtx C)
- func (r *Router) Layout(gtx C) D
- func (r *Router) Notify(message ui_widget.Message)
- func (r *Router) Register(path PagePath, page Page)
- func (r *Router) ShowModal(gtx C, w func(gtx C, th *T) D)
- type ServerEvent
- type T
Constants ¶
View Source
const (
MaxWidth = 800
)
Variables ¶
View Source
var ( SelectorStrategyOptions = []ui_widget.MenuOption{ {Key: i18n.SelectorRound, Value: "round"}, {Key: i18n.SelectorRandom, Value: "rand"}, {Key: i18n.SelectorFIFO, Value: "fifo"}, } PluginTypeOptions = []ui_widget.MenuOption{ {Key: i18n.PluginGRPC, Value: "grpc"}, {Key: i18n.PluginHTTP, Value: "http"}, } IPTypeOptions = []ui_widget.MenuOption{ {Name: "IPv4", Value: "ipv4"}, {Name: "IPv6", Value: "ipv6"}, } )
Functions ¶
This section is empty.
Types ¶
type D ¶
type D = layout.Dimensions
type Page ¶
type Page interface { Init(opts ...PageOption) Layout(gtx C) D }
type PageOption ¶
type PageOption func(opts *PageOptions)
func WithPageCallback ¶
func WithPageCallback(cb Callback) PageOption
func WithPageID ¶
func WithPageID(id string) PageOption
func WithPagePerm ¶
func WithPagePerm(perm Perm) PageOption
func WithPageValue ¶
func WithPageValue(v any) PageOption
type PagePath ¶
type PagePath string
const ( PageHome PagePath = "/" PageServer PagePath = "/server" PageService PagePath = "/service" PageServiceRecord PagePath = "/service/record" PageChain PagePath = "/chain" PageHop PagePath = "/hop" PageNode PagePath = "/node" PageForwarderNode PagePath = "/forwarder/node" PageAuther PagePath = "/auther" PageAutherAuths PagePath = "/auther/auths" PageMatcher PagePath = "/matcher" PageAdmission PagePath = "/admission" PageBypass PagePath = "/bypass" PageResolver PagePath = "/resolver" PageNameServer PagePath = "/resolver/nameserver" PageHosts PagePath = "/hosts" PageHostMapping PagePath = "/hosts/mapping" PageLimiter PagePath = "/limiter" PageLimit PagePath = "/limiter/limit" PageObserver PagePath = "/observer" PageRecorder PagePath = "/recorder" PageEvent PagePath = "/event" PageConfig PagePath = "/config" PageSettings PagePath = "/settings" )
type Perm ¶
type Perm uint8
const ( PermRead Perm = 1 PermWrite Perm = 2 PermDelete Perm = 4 PermReadWrite Perm = PermRead | PermWrite PermReadWriteDelete Perm = PermReadWrite | PermDelete )
type ServerEvent ¶
Click to show internal directories.
Click to hide internal directories.