Documentation
¶
Index ¶
- Constants
- type HttpService
- type HttpServiceConfiguration
- type HttpServiceRequest
- type HttpServiceResponse
- type IService
- type IServiceConfiguration
- type IServiceRequest
- type IServiceResponse
- type SERVICE_REQUEST_TYPE
- type SocketService
- type SocketServiceConfiguration
- type SocketServiceRequest
- type SocketServiceResponse
Constants ¶
View Source
const (
SERVICE_REQUEST_ALL_FLAGS = iota
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpService ¶
type HttpService struct {
HttpServiceConfiguration *HttpServiceConfiguration
}
func (*HttpService) Serve ¶
func (h *HttpService) Serve(handlerFunc func(IServiceRequest) IServiceResponse) error
type HttpServiceConfiguration ¶
type HttpServiceConfiguration struct {
Port int32
}
type HttpServiceRequest ¶
type HttpServiceRequest struct {
Payload string
}
func (*HttpServiceRequest) GenerateServiceResponse ¶
func (h *HttpServiceRequest) GenerateServiceResponse(body string) IServiceResponse
func (*HttpServiceRequest) GetRequestType ¶
func (h *HttpServiceRequest) GetRequestType() SERVICE_REQUEST_TYPE
type HttpServiceResponse ¶
type HttpServiceResponse struct {
// contains filtered or unexported fields
}
func (*HttpServiceResponse) GetPayload ¶
func (h *HttpServiceResponse) GetPayload() string
type IService ¶
type IService interface {
Serve(handlerFunc func(IServiceRequest) IServiceResponse) error
}
type IServiceConfiguration ¶
type IServiceConfiguration interface { }
type IServiceRequest ¶
type IServiceRequest interface { GetRequestType() SERVICE_REQUEST_TYPE GenerateServiceResponse(body string) IServiceResponse }
type IServiceResponse ¶
type IServiceResponse interface {
GetPayload() string
}
type SERVICE_REQUEST_TYPE ¶
type SERVICE_REQUEST_TYPE int32
type SocketService ¶
type SocketService struct {
SocketServiceConfiguration *SocketServiceConfiguration
}
func (*SocketService) Serve ¶
func (h *SocketService) Serve(handlerFunc func(IServiceRequest) IServiceResponse) error
type SocketServiceConfiguration ¶
type SocketServiceConfiguration struct {
SocketPath string
}
type SocketServiceRequest ¶
type SocketServiceRequest struct {
Payload string
}
func (*SocketServiceRequest) GenerateServiceResponse ¶
func (h *SocketServiceRequest) GenerateServiceResponse(body string) IServiceResponse
func (*SocketServiceRequest) GetRequestType ¶
func (h *SocketServiceRequest) GetRequestType() SERVICE_REQUEST_TYPE
type SocketServiceResponse ¶
type SocketServiceResponse struct {
// contains filtered or unexported fields
}
func (*SocketServiceResponse) GetPayload ¶
func (h *SocketServiceResponse) GetPayload() string
Click to show internal directories.
Click to hide internal directories.