Documentation ¶
Index ¶
- func GetAdaptor(model string) utils.AwsAdapter
- type Adaptor
- func (a *Adaptor) ConvertRequest(meta *meta.Meta, req *http.Request) (http.Header, io.Reader, error)
- func (a *Adaptor) DoRequest(_ *meta.Meta, _ *gin.Context, _ *http.Request) (*http.Response, error)
- func (a *Adaptor) DoResponse(meta *meta.Meta, c *gin.Context, _ *http.Response) (usage *relaymodel.Usage, err *relaymodel.ErrorWithStatusCode)
- func (a *Adaptor) GetChannelName() string
- func (a *Adaptor) GetModelList() (models []*model.ModelConfig)
- func (a *Adaptor) GetRequestURL(_ *meta.Meta) (string, error)
- func (a *Adaptor) SetupRequestHeader(_ *meta.Meta, _ *gin.Context, _ *http.Request) error
- type Model
- type ModelType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAdaptor ¶
func GetAdaptor(model string) utils.AwsAdapter
Types ¶
type Adaptor ¶
type Adaptor struct{}
func (*Adaptor) ConvertRequest ¶
func (*Adaptor) DoResponse ¶
func (a *Adaptor) DoResponse(meta *meta.Meta, c *gin.Context, _ *http.Response) (usage *relaymodel.Usage, err *relaymodel.ErrorWithStatusCode)
func (*Adaptor) GetChannelName ¶
func (*Adaptor) GetModelList ¶
func (a *Adaptor) GetModelList() (models []*model.ModelConfig)
Click to show internal directories.
Click to hide internal directories.