client

package
v1.5.18 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBuilder

type IBuilder interface {
	PutMessage(message.IMessage) string
}

func NewBuilder

func NewBuilder() IBuilder

type IClient

type IClient interface {
	GetIndex() (string, error)

	GetHashes() ([]string, error)

	GetMessage(string) (message.IMessage, error)
	PutMessage(message.IMessage) error
}

func NewClient

func NewClient(pBuilder IBuilder, pRequester IRequester) IClient

type IRequester

type IRequester interface {
	GetIndex() (string, error)

	GetHashes() ([]string, error)

	GetMessage(string) (message.IMessage, error)
	PutMessage(string) error
}

func NewRequester

func NewRequester(pHost string, pClient *http.Client, pParams message.ISettings) IRequester

Jump to

Keyboard shortcuts

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