client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package client provides a client for the Eludris API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) interfaces.Client

New creates a new client.

Types

type Config

type Config struct {
	HTTPUrl      string
	WSUrl        string
	FileUrl      string
	EventManager events.EventManager
}

Config represents configuration for the client. This allows you to set the URLs for your chosen Eludris instance.

type Data

type Data struct {
	Json     any
	FormData map[string]io.Reader
}

type RequestType

type RequestType int
const (
	Oprish RequestType = iota
	Effis
)

Jump to

Keyboard shortcuts

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