Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewRemoteErrString (0.14 sec)

  1. cmd/peer-rest-server.go

    func (s *peerRESTServer) GetBucketStatsHandler(vars *grid.MSS) (*BucketStats, *grid.RemoteErr) {
    	bucketName := vars.Get(peerRESTBucket)
    	if bucketName == "" {
    		return nil, grid.NewRemoteErrString("Bucket name is missing")
    	}
    	st := globalReplicationStats.Load()
    	if st == nil {
    		return &BucketStats{}, nil
    	}
    	bs := BucketStats{
    		ReplicationStats: st.Get(bucketName),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  2. internal/grid/handlers.go

    func NewNPErr(err error) (NoPayload, *RemoteErr) {
    	if err == nil {
    		return NoPayload{}, nil
    	}
    	r := RemoteErr(err.Error())
    	return NoPayload{}, &r
    }
    
    // NewRemoteErrString creates a new remote error from a string.
    func NewRemoteErrString(msg string) *RemoteErr {
    	r := RemoteErr(msg)
    	return &r
    }
    
    func (r RemoteErr) Error() string {
    	return string(r)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top