Documentation
¶
Index ¶
- func Bod(t time.Time) time.Time
- func GenCrt(host string)
- func MarshalPKCS8PrivateKey(key *rsa.PrivateKey) ([]byte, error)
- type BurpMetaData
- type BurpRequestResponse
- type BurpTCMessage
- type Client
- type Comment
- type Comments
- type Hub
- type JavaJsonTime
- type Message
- type PKCS8Key
- type Room
- type ShortenedUrls
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"`
MessageType string `json:"msgtype"`
Data string `json:"data"`
}
func NewBurpTCMessage ¶
func NewBurpTCMessage() *BurpTCMessage
func (BurpTCMessage) String ¶
func (b BurpTCMessage) String() string
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
}
func StartServer ¶
func (*Hub) SetShortenerService ¶
func (h *Hub) SetShortenerService(shortenerService *ShortenedUrls)
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
type PKCS8Key ¶
type PKCS8Key struct {
Version int
PrivateKeyAlgorithm []asn1.ObjectIdentifier
PrivateKey []byte
}
type ShortenedUrls ¶
type ShortenedUrls struct {
// contains filtered or unexported fields
}
func NewShortenedUrls ¶
func NewShortenedUrls(port string, host string) *ShortenedUrls
func (*ShortenedUrls) HandleShortUrl ¶
func (shortenedUrls *ShortenedUrls) HandleShortUrl(ctx *fasthttp.RequestCtx)
Click to show internal directories.
Click to hide internal directories.