Documentation ¶
Index ¶
- type Handler
- func (h *Handler) APICaller() iaas.APICaller
- func (h *Handler) GetLogger() *log.Logger
- func (h *Handler) Handle(req *handler.HandleRequest, sender handlers.ResponseSender) error
- func (h *Handler) Name() string
- func (h *Handler) PostHandle(req *handler.PostHandleRequest, sender handlers.ResponseSender) error
- func (h *Handler) PreHandle(req *handler.HandleRequest, sender handlers.ResponseSender) error
- func (h *Handler) SetAPICaller(caller iaas.APICaller)
- func (h *Handler) SetLogger(logger *log.Logger)
- func (h *Handler) Version() string
- type SakuraCloudAPICaller
- type SakuraCloudAPIClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
Builtin handlers.HandlerMeta
}
Handler builtinハンドラーをラップし、リクエスト受付時のログ出力を担当するハンドラー
全ての処理をBuiltinに設定されたハンドラーに委譲する
func (*Handler) Handle ¶
func (h *Handler) Handle(req *handler.HandleRequest, sender handlers.ResponseSender) error
func (*Handler) PostHandle ¶
func (h *Handler) PostHandle(req *handler.PostHandleRequest, sender handlers.ResponseSender) error
func (*Handler) PreHandle ¶
func (h *Handler) PreHandle(req *handler.HandleRequest, sender handlers.ResponseSender) error
func (*Handler) SetAPICaller ¶
func (h *Handler) SetAPICaller(caller iaas.APICaller)
type SakuraCloudAPICaller ¶
type SakuraCloudAPICaller interface { APICaller() iaas.APICaller SetAPICaller(caller iaas.APICaller) }
SakuraCloudAPICaller さくらのクラウドAPIを利用するビルトインハンドラ向けのインターフェース
type SakuraCloudAPIClient ¶
type SakuraCloudAPIClient struct {
// contains filtered or unexported fields
}
SakuraCloudAPIClient SakuraCloudAPICallerの実装、各ハンドラーに埋め込んで利用する
func (*SakuraCloudAPIClient) APICaller ¶
func (c *SakuraCloudAPIClient) APICaller() iaas.APICaller
func (*SakuraCloudAPIClient) SetAPICaller ¶
func (c *SakuraCloudAPIClient) SetAPICaller(caller iaas.APICaller)
Click to show internal directories.
Click to hide internal directories.