Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadRequest = &SClientError{"bad request"} ErrDecodeResponse = &SClientError{"decode response"} ErrInvalidPublicKey = &SClientError{"invalid public key"} ErrInvalidTitle = &SClientError{"invalid title"} )
Functions ¶
This section is empty.
Types ¶
type IClient ¶
type IClient interface { GetIndex(context.Context) (string, error) GetSettings(context.Context) (config.IConfigSettings, error) GetOnlines(context.Context) ([]string, error) DelOnline(context.Context, string) error GetConnections(context.Context) ([]string, error) AddConnection(context.Context, string) error DelConnection(context.Context, string) error ProduceMessage(context.Context, net_message.IMessage) error }
func NewClient ¶
func NewClient(pRequester IRequester) IClient
type IRequester ¶
type IRequester interface { GetIndex(context.Context) (string, error) GetSettings(context.Context) (config.IConfigSettings, error) GetOnlines(context.Context) ([]string, error) DelOnline(context.Context, string) error GetConnections(context.Context) ([]string, error) AddConnection(context.Context, string) error DelConnection(context.Context, string) error ProduceMessage(context.Context, net_message.IMessage) error }
func NewRequester ¶
func NewRequester(pHost string, pClient *http.Client) IRequester
type SClientError ¶
type SClientError struct {
// contains filtered or unexported fields
}
func (*SClientError) Error ¶
func (err *SClientError) Error() string
Click to show internal directories.
Click to hide internal directories.