yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/cloudprovider/loadbalancerbackendgroup.go (about)

     1  // Copyright 2019 Yunion
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package cloudprovider
    16  
    17  type SLoadbalancerBackendGroup struct {
    18  	Name      string
    19  	GroupType string
    20  	Backends  []SLoadbalancerBackend
    21  
    22  	// huawei only
    23  	LoadbalancerID string // 负载均衡ID
    24  	ListenerID     string // 监听器ID
    25  	ListenType     string // 后端服务器组监听类型
    26  	Scheduler      string
    27  	StickySession  *SLoadbalancerStickySession
    28  	HealthCheck    *SLoadbalancerHealthCheck
    29  	// aws
    30  	ListenPort int    // 后端端口
    31  	VpcId      string // vpc id
    32  }
    33  
    34  type SLoadbalancerHealthCheck struct {
    35  	HealthCheckType string
    36  	HealthCheckReq  string
    37  	HealthCheckExp  string
    38  
    39  	HealthCheck         string
    40  	HealthCheckTimeout  int
    41  	HealthCheckDomain   string
    42  	HealthCheckHttpCode string
    43  	HealthCheckURI      string
    44  	HealthCheckInterval int
    45  
    46  	HealthCheckRise int
    47  	HealthCheckFail int
    48  }
    49  
    50  type SLoadbalancerStickySession struct {
    51  	StickySession              string
    52  	StickySessionCookie        string
    53  	StickySessionType          string
    54  	StickySessionCookieTimeout int
    55  }