Documentation ¶
Overview ¶
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午
Index ¶
- type AliSlbClient
- func (c *AliSlbClient) AddBackendServers(balancerId string, serverId string) (response *slb.AddBackendServersResponse, err error)
- func (c *AliSlbClient) CreateLoadBalancer(internetChargeType string, bandwidth int) (response *slb.CreateLoadBalancerResponse, err error)
- func (c *AliSlbClient) CreateLoadBalancerTCPListener(balancerId string, listenerPort int, backendServerPort int) (response *slb.CreateLoadBalancerTCPListenerResponse, err error)
- func (c *AliSlbClient) DeleteLoadBalancer(balancerId string) (response *slb.DeleteLoadBalancerResponse, err error)
- func (c *AliSlbClient) StartLoadBalancerListener(balancerId string, listenerPort int) (response *slb.StartLoadBalancerListenerResponse, err error)
- type AliSmsClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliSlbClient ¶
type AliSlbClient struct {
// contains filtered or unexported fields
}
func NewSlb ¶
func NewSlb(regionId, accessKeyID, accessKeySecret string) (client *AliSlbClient, err error)
func (*AliSlbClient) AddBackendServers ¶
func (c *AliSlbClient) AddBackendServers(balancerId string, serverId string) (response *slb.AddBackendServersResponse, err error)
添加后端服务器
func (*AliSlbClient) CreateLoadBalancer ¶
func (c *AliSlbClient) CreateLoadBalancer(internetChargeType string, bandwidth int) (response *slb.CreateLoadBalancerResponse, err error)
创建slb
func (*AliSlbClient) CreateLoadBalancerTCPListener ¶
func (c *AliSlbClient) CreateLoadBalancerTCPListener(balancerId string, listenerPort int, backendServerPort int) (response *slb.CreateLoadBalancerTCPListenerResponse, err error)
创建监听
func (*AliSlbClient) DeleteLoadBalancer ¶
func (c *AliSlbClient) DeleteLoadBalancer(balancerId string) (response *slb.DeleteLoadBalancerResponse, err error)
删除slb
func (*AliSlbClient) StartLoadBalancerListener ¶
func (c *AliSlbClient) StartLoadBalancerListener(balancerId string, listenerPort int) (response *slb.StartLoadBalancerListenerResponse, err error)
开始监听
type AliSmsClient ¶
type AliSmsClient struct {
// contains filtered or unexported fields
}
func NewSMS ¶
func NewSMS(regionId, accessKeyID, accessKeySecret string) (client *AliSmsClient, err error)
func (*AliSmsClient) Send ¶
func (c *AliSmsClient) Send(phoneNumber, signName, templateCode string, templateParam map[string]interface{}) (response *dysmsapi.SendSmsResponse, err error)
发送短信
Click to show internal directories.
Click to hide internal directories.