http

package
v0.0.0-...-8c446f2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocalIp

func LocalIp() string

func RegisterHTTPEndpoints

func RegisterHTTPEndpoints(r *gin.Engine, uc chat.UseCase)

Types

type Client

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

Client

type ClientManager

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

Client management

type Message

type Message struct {
	//Message Struct
	SenderID    string `json:"sender_id,omitempty"`
	RecipientID string `json:"recipient_id,omitempty"`
	Content     string `json:"content,omitempty"`
	ServerIP    string `json:"serverIp,omitempty"`
	SenderIP    string `json:"senderIp,omitempty"`
}

Will formatting Message into JSON

Jump to

Keyboard shortcuts

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