Documentation ¶
Index ¶
- func GenCrt(host string)
- func MarshalPKCS8PrivateKey(key *rsa.PrivateKey) ([]byte, error)
- func ServeWs(hub *Hub, w http.ResponseWriter, r *http.Request)
- type BurpMetaData
- type BurpRequestResponse
- type BurpTCMessage
- type Client
- type Comment
- type Comments
- type Hub
- type JavaJsonTime
- type PKCS8Key
- type Room
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalPKCS8PrivateKey ¶
func MarshalPKCS8PrivateKey(key *rsa.PrivateKey) ([]byte, error)
Types ¶
type BurpMetaData ¶
type BurpMetaData struct { Host string `json:"host"` Port int `json:"port"` Protocol string `json:"protocol"` }
func (BurpMetaData) String ¶
func (b BurpMetaData) String() string
type BurpRequestResponse ¶
type BurpRequestResponse struct { Request []int `json:"request"` Response []int `json:"response"` HttpService *BurpMetaData `json:"httpService"` Comments []Comment `json:"comments"` }
func (BurpRequestResponse) String ¶
func (b BurpRequestResponse) String() string
type BurpTCMessage ¶
type BurpTCMessage struct { BurpRequestResponse *BurpRequestResponse `json:"burpmsg"` MessageTarget string `json:"messageTarget"` MessageType string `json:"msgtype"` Data string `json:"data"` }
func NewBurpTCMessage ¶
func NewBurpTCMessage() *BurpTCMessage
func (BurpTCMessage) String ¶
func (b BurpTCMessage) String() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a middleman between the websocket connection and the hub.
type Comment ¶
type Comment struct { Comment string `json:"comment"` UserWhoCommented string `json:"userWhoCommented"` TimeOfComment JavaJsonTime `json:"timeOfComment"` }
type Comments ¶
type Comments struct {
// contains filtered or unexported fields
}
func NewComments ¶
func NewComments() Comments
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub maintains the set of active clients and broadcasts messages to the clients.
type JavaJsonTime ¶
func (JavaJsonTime) MarshalJSON ¶
func (j JavaJsonTime) MarshalJSON() ([]byte, error)
func (JavaJsonTime) String ¶
func (j JavaJsonTime) String() string
func (*JavaJsonTime) UnmarshalJSON ¶
func (j *JavaJsonTime) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.