Documentation ¶
Index ¶
- func GetDataDtoJson(d interface{}) string
- func GetErrorDtoJson(message string) string
- func GetErrorObjDtoJson(err error) string
- type APSServerAPSInfo
- type APSServerLogInfo
- type APSServerSetupInfo
- type APSServerSipServerInfo
- type AddressInfo
- type CMSServerDbPropertyInfo
- type CMSServerInfo
- type CMSServerSessionFactoryInfo
- type CMSServerSetupInfo
- type CpuInfo
- type DataDto
- type LoginHandle
- type MTSServerMTSInfo
- type MTSServerSetupInfo
- type MemInfo
- type NetCardInfo
- type PageHandle
- type PageInfo
- type ProcessInfo
- type RouteHandle
- type RouteHandles
- type SIPServerActiveMQInfo
- type SIPServerOptionInfo
- type SIPServerSIPInfo
- type SIPServerSetupInfo
- type ServerInfo
- type ServerPageHandle
- type ServerPageInfo
- type ServerProcessInfo
- type ServerSaveInfo
- type ServerStatusInfo
- type SetupHandle
- type SetupInfo
- func (setupInfo *SetupInfo) AddServerInfo(serverInfo ServerInfo)
- func (setupInfo *SetupInfo) AddUserInfo(userInfo UserInfo)
- func (setupInfo *SetupInfo) DeleteServerByServerName(serverName string) bool
- func (setupInfo *SetupInfo) DeleteUserByUserName(userName string) bool
- func (setupInfo *SetupInfo) GetServerIndexByServerName(serverName string) int
- func (setupInfo1 *SetupInfo) GetSetupInfo(setupInfo *SetupInfo) bool
- func (setupInfo *SetupInfo) GetUserIndexByUserName(userName string) int
- func (setupInfo1 *SetupInfo) SaveSetupInfo(setupInfo *SetupInfo) bool
- type UserHandle
- type UserInfo
- type UserSaveInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataDtoJson ¶
func GetDataDtoJson(d interface{}) string
func GetErrorDtoJson ¶
func GetErrorObjDtoJson ¶
Types ¶
type APSServerAPSInfo ¶
type APSServerAPSInfo struct { XMLName xml.Name `xml:"aps"` Id string `xml:"id"` Password string `xml:"password"` RegisterInterval int `xml:"registerinterval"` DefaultHeartInterval int `xml:"defaultheartinterval"` AddressInfo AddressInfo LogInfo APSServerLogInfo }
type APSServerLogInfo ¶
type APSServerSetupInfo ¶
type APSServerSetupInfo struct { XMLName xml.Name `xml:"sysware"` APSInfo APSServerAPSInfo SipServerInfo APSServerSipServerInfo CMSServerInfo CMSServerInfo }
type APSServerSipServerInfo ¶
type APSServerSipServerInfo struct { XMLName xml.Name `xml:"sipserver"` Id string `xml:"id"` Domain string `xml:"domain"` AddressInfo AddressInfo }
type AddressInfo ¶
type CMSServerDbPropertyInfo ¶
type CMSServerInfo ¶
type CMSServerSessionFactoryInfo ¶
type CMSServerSessionFactoryInfo struct { XMLName xml.Name `xml:"session-factory"` Properties []CMSServerDbPropertyInfo `xml:"property"` }
type CMSServerSetupInfo ¶
type CMSServerSetupInfo struct { XMLName xml.Name `xml:"hibernate-configuration"` SessionFactoryInfo CMSServerSessionFactoryInfo }
func (*CMSServerSetupInfo) GetProperty ¶
func (cMSServerSetupInfo *CMSServerSetupInfo) GetProperty(propKey string) (string, error)
func (*CMSServerSetupInfo) SetProperty ¶
func (cMSServerSetupInfo *CMSServerSetupInfo) SetProperty(propKey string, value string) error
type CpuInfo ¶
type CpuInfo struct { User uint64 // time spent in user mode Nice uint64 // time spent in user mode with low priority (nice) System uint64 // time spent in system mode Idle uint64 // time spent in the idle task Iowait uint64 // time spent waiting for I/O to complete (since Linux 2.5.41) Irq uint64 // time spent servicing interrupts (since 2.6.0-test4) SoftIrq uint64 // time spent servicing softirqs (since 2.6.0-test4) Steal uint64 // time spent in other OSes when running in a virtualized environment Guest uint64 // time spent running a virtual CPU for guest operating systems under the control of the Linux kernel. Total uint64 // total of all time fields }
type LoginHandle ¶
type MTSServerMTSInfo ¶
type MTSServerSetupInfo ¶
type MTSServerSetupInfo struct { XMLName xml.Name `xml:"sysware"` MTSInfo MTSServerMTSInfo SipServerInfo APSServerSipServerInfo CMSServerInfo CMSServerInfo }
type NetCardInfo ¶
type NetCardInfo struct { Iface string InBytes int64 InPackages int64 InErrors int64 InDropped int64 InFifoErrs int64 InFrameErrs int64 InCompressed int64 InMulticast int64 OutBytes int64 OutPackages int64 OutErrors int64 OutDropped int64 OutFifoErrs int64 OutCollisions int64 OutCarrierErrs int64 OutCompressed int64 TotalBytes int64 TotalPackages int64 TotalErrors int64 TotalDropped int64 }
type PageHandle ¶
type PageHandle interface {
GetPageInfo(pageNo int, perPageRecordSize int, recordCount int) PageInfo
}
func NewPageHandle ¶
func NewPageHandle() PageHandle
type ProcessInfo ¶
type RouteHandle ¶
type RouteHandle interface {
Routes(m *martini.ClassicMartini)
}
type RouteHandles ¶
type RouteHandles struct {
Handles []RouteHandle
}
func (*RouteHandles) Routes ¶
func (routeHandle *RouteHandles) Routes(m *martini.ClassicMartini)
type SIPServerActiveMQInfo ¶
type SIPServerActiveMQInfo struct { XMLName xml.Name `xml:"activeMQ"` AddressInfo AddressInfo Topic string `xml:"topic"` }
type SIPServerOptionInfo ¶
type SIPServerSIPInfo ¶
type SIPServerSetupInfo ¶
type SIPServerSetupInfo struct { XMLName xml.Name `xml:"sysware"` SIPInfo SIPServerSIPInfo CMSServerInfo CMSServerInfo OptionInfo SIPServerOptionInfo ActiveMQInfo SIPServerActiveMQInfo }
type ServerInfo ¶
type ServerPageHandle ¶
type ServerPageHandle interface {
GetServerPageInfo(pageNo int, perPageRecordSize int) ServerPageInfo
}
func NewServerPageHandle ¶
func NewServerPageHandle() ServerPageHandle
type ServerPageInfo ¶
type ServerPageInfo struct { Servers []ServerInfo Page PageInfo }
func (*ServerPageInfo) GetServerPageInfo ¶
func (serverPageInfo *ServerPageInfo) GetServerPageInfo(pageNo int, perPageRecordSize int) ServerPageInfo
type ServerProcessInfo ¶
type ServerProcessInfo struct { ServerInfo ProcessInfo }
type ServerSaveInfo ¶
type ServerSaveInfo struct { ServerInfo OServerName string AddFlag bool }
type ServerStatusInfo ¶
type SetupHandle ¶
type SetupHandle interface { GetSetupInfo(setupInfo *SetupInfo) bool SaveSetupInfo(setupInfo *SetupInfo) bool }
func NewSetupHandle ¶
func NewSetupHandle() SetupHandle
type SetupInfo ¶
type SetupInfo struct { XMLName xml.Name `xml:"swd"` Users []UserInfo `xml:"user"` Servers []ServerInfo `xml:"server"` Port int `xml:"port"` }
func (*SetupInfo) AddServerInfo ¶
func (setupInfo *SetupInfo) AddServerInfo(serverInfo ServerInfo)
func (*SetupInfo) AddUserInfo ¶
func (*SetupInfo) DeleteServerByServerName ¶
func (*SetupInfo) DeleteUserByUserName ¶
func (*SetupInfo) GetServerIndexByServerName ¶
func (*SetupInfo) GetSetupInfo ¶
func (*SetupInfo) GetUserIndexByUserName ¶
func (*SetupInfo) SaveSetupInfo ¶
type UserHandle ¶
type UserHandle interface { LoginHandle Logout() IsLogin() bool }
type UserInfo ¶
type UserInfo struct { UserName string `xml:"userName"` Password string `xml:"password"` StatusDate time.Time `xml:"-"` LoginStatus int `xml:"-"` }
func (*UserInfo) SetLoginState ¶
func (userInfo *UserInfo) SetLoginState()
type UserSaveInfo ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.