Add projects
This commit is contained in:
parent
2d3a9ad623
commit
8b607dd700
1802 changed files with 503346 additions and 2 deletions
14
backend/sdk/translator/format.go
Normal file
14
backend/sdk/translator/format.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package translator
|
||||
|
||||
// Format identifies a request/response schema used inside the proxy.
|
||||
type Format string
|
||||
|
||||
// FromString converts an arbitrary identifier to a translator format.
|
||||
func FromString(v string) Format {
|
||||
return Format(v)
|
||||
}
|
||||
|
||||
// String returns the raw schema identifier.
|
||||
func (f Format) String() string {
|
||||
return string(f)
|
||||
}
|
||||
Loading…
Reference in a new issue