Documentation
¶
Index ¶
- func CreateUrlFromString(raw string) (*ypb.YakURL, error)
- func GetQueryParam(params []*ypb.KVPair, key string) string
- func LoadGetResource(u string) (*ypb.RequestYakURLResponse, error)
- type Action
- type ActionService
- type BaseAction
- func (b *BaseAction) Delete(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (b *BaseAction) Do(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (b *BaseAction) Get(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (b *BaseAction) Head(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (b *BaseAction) Post(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (b *BaseAction) Put(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- type BaseActionHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUrlFromString ¶ added in v1.3.2
func LoadGetResource ¶ added in v1.3.2
func LoadGetResource(u string) (*ypb.RequestYakURLResponse, error)
Types ¶
type Action ¶
type Action interface { Get(*ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) Post(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) Put(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) Delete(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) Head(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) Do(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) }
func GetWebsiteViewerAction ¶ added in v1.2.9
func GetWebsiteViewerAction() Action
type ActionService ¶ added in v1.3.0
type ActionService struct {
// contains filtered or unexported fields
}
func GetActionService ¶ added in v1.3.0
func GetActionService() *ActionService
func (*ActionService) CreateAction ¶ added in v1.3.0
func (s *ActionService) CreateAction(schema string) Action
func (*ActionService) GetAction ¶ added in v1.3.0
func (s *ActionService) GetAction(schema string) Action
func (*ActionService) Stop ¶ added in v1.3.0
func (s *ActionService) Stop()
type BaseAction ¶ added in v1.3.2
type BaseAction struct {
// contains filtered or unexported fields
}
func (*BaseAction) Delete ¶ added in v1.3.2
func (b *BaseAction) Delete(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*BaseAction) Do ¶ added in v1.3.2
func (b *BaseAction) Do(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*BaseAction) Get ¶ added in v1.3.2
func (b *BaseAction) Get(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*BaseAction) Head ¶ added in v1.3.2
func (b *BaseAction) Head(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*BaseAction) Post ¶ added in v1.3.2
func (b *BaseAction) Post(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*BaseAction) Put ¶ added in v1.3.2
func (b *BaseAction) Put(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
Click to show internal directories.
Click to hide internal directories.