endpoints

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG_FILE_NAME = "tangle-hornet.conf"

Variables

This section is empty.

Functions

func CreateNewMessage

func CreateNewMessage(writer http.ResponseWriter, request *http.Request)

Create and submit a new message.

func GetAllMessagesByIndex

func GetAllMessagesByIndex(writer http.ResponseWriter, request *http.Request)

Get all messages using a specific index.

func GetAllNodeInfo

func GetAllNodeInfo(writer http.ResponseWriter, request *http.Request)

Shows all information about Tangle Hornet Network

func GetLastHourMessagesByIndex added in v1.5.0

func GetLastHourMessagesByIndex(writer http.ResponseWriter, request *http.Request)

Get a limited amount of messages created in the last hour, available on the node by a given index.

func GetMessageByMessageId

func GetMessageByMessageId(writer http.ResponseWriter, request *http.Request)

Get a message by given message ID.

func GetNodeInfo

func GetNodeInfo(writer http.ResponseWriter, request *http.Request)

Shows information about Tangle Hornet Network

Types

type Message

type Message struct {
	Index string      `json:"index"`
	Data  interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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