Files
open-im-server/internal/rpc/third/s3.go
T

24 lines
642 B
Go
Raw Normal View History

2023-03-01 15:32:26 +08:00
package third
2023-03-03 17:20:36 +08:00
import (
"OpenIM/pkg/proto/third"
"context"
2023-03-06 16:40:57 +08:00
"time"
2023-03-03 17:20:36 +08:00
)
func (t *thirdServer) ApplyPut(ctx context.Context, req *third.ApplyPutReq) (*third.ApplyPutResp, error) {
return t.s3dataBase.ApplyPut(ctx, req)
}
func (t *thirdServer) GetPut(ctx context.Context, req *third.GetPutReq) (*third.GetPutResp, error) {
return t.s3dataBase.GetPut(ctx, req)
}
func (t *thirdServer) ConfirmPut(ctx context.Context, req *third.ConfirmPutReq) (*third.ConfirmPutResp, error) {
return t.s3dataBase.ConfirmPut(ctx, req)
}
2023-03-06 16:40:57 +08:00
func (t *thirdServer) CleanObject(ctx context.Context, now time.Time) {
2023-03-07 11:12:39 +08:00
t.s3dataBase.CleanExpirationObject(ctx, now)
2023-03-06 16:40:57 +08:00
}