github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/stellar/stellarsvc/service_production.go (about) 1 // Copyright 2018 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 // 4 //go:build production 5 // +build production 6 7 package stellarsvc 8 9 import ( 10 "context" 11 "fmt" 12 13 "github.com/keybase/client/go/protocol/stellar1" 14 ) 15 16 func (s *Server) WalletDumpLocal(ctx context.Context) (dump stellar1.Bundle, err error) { 17 _, fin, err := s.Preamble(ctx, preambleArg{ 18 RPCName: "WalletDumpLocal", 19 Err: &err, 20 AllowLoggedOut: true, 21 }) 22 defer fin() 23 if err != nil { 24 return dump, err 25 } 26 27 return dump, fmt.Errorf("WalletDumpLocal is disabled in prod mode") 28 }