feat: 完成连接测试和新建s3连接函数

This commit is contained in:
loveuer
2024-09-26 22:35:43 +08:00
parent fcb2a349e7
commit 65f702c6e9
9 changed files with 178 additions and 0 deletions

View File

@ -20,6 +20,10 @@ func NewCtx(ctx context.Context, req *json.Decoder, res io.Writer) *Ctx {
}
}
func (c *Ctx) Context() context.Context {
return c.ctx
}
func (c *Ctx) Write(bs []byte) (int, error) {
return c.res.Write(bs)
}