github.com/openimsdk/tools@v0.0.49/s3/cont/consts.go (about)

     1  // Copyright © 2023 OpenIM. All rights reserved.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package cont
    16  
    17  const (
    18  	// HashPath defines the storage path for hash data within the 'openim' directory.
    19  	hashPath = "openim/data/hash/"
    20  
    21  	// TempPath specifies the directory for temporary files in the 'openim' structure.
    22  	tempPath = "openim/temp/"
    23  
    24  	// DirectPath indicates the directory for direct uploads or access within the 'openim' structure.
    25  	DirectPath = "openim/direct"
    26  
    27  	// UploadTypeMultipart represents the identifier for multipart uploads,
    28  	// allowing large files to be uploaded in chunks.
    29  	UploadTypeMultipart = 1
    30  
    31  	// UploadTypePresigned signifies the use of presigned URLs for uploads,
    32  	// facilitating secure, authorized file transfers without requiring direct access to the storage credentials.
    33  	UploadTypePresigned = 2
    34  
    35  	// PartSeparator is used as a delimiter in multipart upload processes,
    36  	// separating individual file parts.
    37  	partSeparator = ","
    38  )