Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient interface { Connect(ipAddress string, port int64) error ConnectTSL(ipAddress string, port int64, config *TLSConfig) error Close() error GetApi(protocol common.RestProtocol, path string, method *common.RestMethod, produces *common.MimeType, consumes *common.MimeType, body *[]byte, values *url.Values) (int, []byte, error) }
type ApiServer ¶
type ApiServer interface { Start(ipAddress string, port int64) error StartTLS(ipAddress string, port int64, config *TLSConfig) error Stop() error Shutdown() error IsRunning() bool AddApiAction(path string, action common.ApiAction, hasInternalAnswer bool, method *common.RestMethod, produces *common.MimeType, consumes *common.MimeType) bool AddApiStream(path string, stream streams.DataStream, method *common.RestMethod, produces *common.MimeType, consumes *common.MimeType) bool }
type HandlerRef ¶
type HandlerRef struct { Path string Action common.ApiAction HasAnswer bool Stream streams.DataStream Method *common.RestMethod Consumes *common.MimeType Produces *common.MimeType }
func (*HandlerRef) IsAction ¶
func (ha *HandlerRef) IsAction() bool
func (*HandlerRef) IsStream ¶
func (ha *HandlerRef) IsStream() bool
func (*HandlerRef) String ¶
func (ha *HandlerRef) String() string
Click to show internal directories.
Click to hide internal directories.