Documentation ¶
Index ¶
- type Handler
- func (h *Handler) APICaller() sacloud.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.PreHandleRequest, sender handlers.ResponseSender) error
- func (h *Handler) SetAPICaller(caller sacloud.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.PreHandleRequest, sender handlers.ResponseSender) error
func (*Handler) SetAPICaller ¶
type SakuraCloudAPICaller ¶
type SakuraCloudAPICaller interface { APICaller() sacloud.APICaller SetAPICaller(caller sacloud.APICaller) }
SakuraCloudAPICaller さくらのクラウドAPIを利用するビルトインハンドラ向けのインターフェース
type SakuraCloudAPIClient ¶
type SakuraCloudAPIClient struct {
// contains filtered or unexported fields
}
SakuraCloudAPIClient SakuraCloudAPICallerの実装、各ハンドラーに埋め込んで利用する
func (*SakuraCloudAPIClient) APICaller ¶
func (c *SakuraCloudAPIClient) APICaller() sacloud.APICaller
func (*SakuraCloudAPIClient) SetAPICaller ¶
func (c *SakuraCloudAPIClient) SetAPICaller(caller sacloud.APICaller)
Click to show internal directories.
Click to hide internal directories.