internal

package
v0.0.0-...-60ef4de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bod

func Bod(t time.Time) time.Time

func GenCrt

func GenCrt(host string)

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 Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Reader

func (c *Client) Reader()

func (*Client) Writer

func (c *Client) Writer()

type Comment

type Comment struct {
	Comment          string       `json:"comment"`
	UserWhoCommented string       `json:"userWhoCommented"`
	TimeOfComment    JavaJsonTime `json:"timeOfComment"`
}

func (*Comment) String

func (c *Comment) String() string

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 NewHub

func NewHub(serverPassword string) *Hub

func StartServer

func StartServer(serverPassword *string, host *string, enableUrlShortener *bool, shortenerPort *string, port *string) *Hub

func (*Hub) Register

func (h *Hub) Register(conn *websocket.Conn, clientName string) *Client

func (*Hub) SetShortenerService

func (h *Hub) SetShortenerService(shortenerService *ShortenedUrls)

type JavaJsonTime

type JavaJsonTime struct {
	T time.Time
}

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 Message

type Message struct {
	// contains filtered or unexported fields
}

type PKCS8Key

type PKCS8Key struct {
	Version             int
	PrivateKeyAlgorithm []asn1.ObjectIdentifier
	PrivateKey          []byte
}

type Room

type Room struct {
	// contains filtered or unexported fields
}

func NewRoom

func NewRoom(roomName string, password string) *Room

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL