deriv

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 10 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 {
	Endpoint string `mapstructure:"endpoint"`
}

type Service

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

func NewService

func NewService(cfg *Config) *Service

NewService initializes and returns a new Service instance. It takes cfg of type *Config which contains configuration settings. It returns a pointer to a Service struct.

func (*Service) Handle

func (s *Service) Handle(conn *core.Conn, req *request.Request) error

Handle processes a request using the provided connection and request objects. It takes conn of type *core.Conn and req of type *core.Request. It returns an error if the handler fails to process the request.

Jump to

Keyboard shortcuts

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