interactions

package
v0.0.0-...-18c94e2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DiscordToken         string `split_words:"true" required:"true"`
	DiscordWebhookPubkey string `split_words:"true" required:"true"`

	MinecraftServerName string `split_words:"true" required:"true"`
	MinecraftServerHost string `split_words:"true" required:"true"`
	RconPassword        string `split_words:"true" required:"true"`
	RconHostport        string `split_words:"true" required:"true"`

	DiscordGuildId string `split_words:"true" required:"true"`
}

type Server

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

func NewServer

func NewServer(cfg *Config) (*Server, error)

func (*Server) Close

func (srv *Server) Close() error

func (*Server) ServeHTTP

func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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