Documentation
¶
Index ¶
- type AddGroupData
- type AddGroupEnter
- type AddGroupExit
- type AddProfilesData
- type ApplicationState
- type ClearWarnings
- type ConnectData
- type DeleteGroupData
- type DeleteProfilesData
- type DieData
- type DisableTunData
- type DisconnectData
- type EnableTunData
- type GetApplicationStateData
- type Group
- type GroupAdded
- type GroupDeleted
- type GroupWithProfiles
- type HelpViewEnter
- type HelpViewExit
- type IsRootAnswer
- type IsRootData
- type KillCore
- type Message
- type Profile
- type ProfileID
- type ProfileUpdated
- type ProfilesAdded
- type ProfilesDeleted
- type ProxyStatus
- type ServerNotification
- type SubscriptionUpdated
- type TcpMessage
- type TestProfileData
- type TunStatus
- type TunViewEnter
- type TunViewExit
- type UpdateProfileData
- type UpdateProfileEnter
- type UpdateProfileExit
- type UpdateSubscriptionData
- type Warning
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddGroupData ¶
type AddGroupEnter ¶
type AddGroupEnter struct{}
type AddGroupExit ¶
type AddGroupExit struct{}
type AddProfilesData ¶
type ApplicationState ¶
type ApplicationState struct {
Groups []GroupWithProfiles `json:"groups"`
ConnectionStatus ProxyStatus `json:"connection-status"`
TunStatus bool `json:"tun-status"`
}
func (ApplicationState) IsNotification ¶
func (a ApplicationState) IsNotification()
type ClearWarnings ¶
type ClearWarnings struct{}
type ConnectData ¶
type ConnectData struct {
Profile ProfileID `json:"profile"`
}
type DeleteGroupData ¶
type DeleteGroupData struct {
Id int `json:"id"`
}
type DeleteProfilesData ¶
type DeleteProfilesData struct {
Profiles []ProfileID `json:"profiles"`
}
type DisableTunData ¶
type DisableTunData struct{}
type DisconnectData ¶
type DisconnectData struct{}
type EnableTunData ¶
type EnableTunData struct{}
type GetApplicationStateData ¶
type GetApplicationStateData struct{}
type GroupAdded ¶
type GroupAdded struct {
Id int `json:"id"`
SubscriptionUrl string `json:"subscription_url"`
Name string `json:"name"`
}
func (GroupAdded) IsNotification ¶
func (g GroupAdded) IsNotification()
type GroupDeleted ¶
type GroupDeleted struct {
Id int `json:"id"`
}
func (GroupDeleted) IsNotification ¶
func (g GroupDeleted) IsNotification()
type GroupWithProfiles ¶
type HelpViewEnter ¶
type HelpViewEnter struct{}
type HelpViewExit ¶
type HelpViewExit struct{}
type IsRootAnswer ¶
type IsRootAnswer struct {
IsRoot bool
}
func (IsRootAnswer) IsNotification ¶
func (i IsRootAnswer) IsNotification()
type IsRootData ¶
type IsRootData struct{}
type ProfileUpdated ¶
type ProfileUpdated struct {
Profile Profile `json:"profile"`
}
func (ProfileUpdated) IsNotification ¶
func (p ProfileUpdated) IsNotification()
type ProfilesAdded ¶
type ProfilesAdded struct {
Profiles []Profile `json:"profiles"`
}
func (ProfilesAdded) IsNotification ¶
func (p ProfilesAdded) IsNotification()
type ProfilesDeleted ¶
type ProfilesDeleted struct {
DeletedProfiles []ProfileID `json:"deleted-profiles"`
}
func (ProfilesDeleted) IsNotification ¶
func (p ProfilesDeleted) IsNotification()
type ProxyStatus ¶
func (ProxyStatus) IsNotification ¶
func (p ProxyStatus) IsNotification()
type ServerNotification ¶
type ServerNotification interface {
IsNotification()
}
type SubscriptionUpdated ¶
type SubscriptionUpdated struct {
GroupId int `json:"group_id"`
Profiles []Profile `json:"profiles"`
}
func (SubscriptionUpdated) IsNotification ¶
func (s SubscriptionUpdated) IsNotification()
type TcpMessage ¶
type TcpMessage struct {
Msg string `json:"msg"`
Data json.RawMessage `json:"data"`
}
type TestProfileData ¶
type TestProfileData struct {
Profile ProfileID `json:"profile"`
}
type TunStatus ¶
type TunStatus struct {
IsEnabled bool `json:"is_enabled"`
}
func (TunStatus) IsNotification ¶
func (t TunStatus) IsNotification()
type TunViewEnter ¶
type TunViewEnter struct{}
type TunViewExit ¶
type TunViewExit struct{}
type UpdateProfileData ¶
type UpdateProfileEnter ¶
type UpdateProfileEnter struct{}
type UpdateProfileExit ¶
type UpdateProfileExit struct{}
type UpdateSubscriptionData ¶
type UpdateSubscriptionData struct {
GroupId int `json:"group_id"`
}
Click to show internal directories.
Click to hide internal directories.