github.com/wangyougui/gf/v2@v2.6.5/net/goai/goai_server.go (about)

     1  // Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
     2  //
     3  // This Source Code Form is subject to the terms of the MIT License.
     4  // If a copy of the MIT was not distributed with this file,
     5  // You can obtain one at https://github.com/wangyougui/gf.
     6  
     7  package goai
     8  
     9  // Server is specified by OpenAPI/Swagger standard version 3.0.
    10  type Server struct {
    11  	URL         string                     `json:"url"`
    12  	Description string                     `json:"description,omitempty"`
    13  	Variables   map[string]*ServerVariable `json:"variables,omitempty"`
    14  }
    15  
    16  // ServerVariable is specified by OpenAPI/Swagger standard version 3.0.
    17  type ServerVariable struct {
    18  	Enum        []string `json:"enum,omitempty"`
    19  	Default     string   `json:"default,omitempty"`
    20  	Description string   `json:"description,omitempty"`
    21  }
    22  
    23  // Servers is specified by OpenAPI/Swagger standard version 3.0.
    24  type Servers []Server