_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c181600 | // NewV5 creates a new UUID with variant 5 as described in RFC 4122.
// Variant 5 based namespace-uuid and name and SHA-1 hash calculation. | |
c181601 | // Sort returns a sorted list of LexSymbols, sorted by Priority | |
c181602 | // Less returns true if the i-th element's Priority is less than the j-th element | |
c181603 | // Swap swaps the elements at i and j | |
c181604 | // Copy creates a new copy of the given LexSymbolSet | |
c181605 | // Set creates and sets a new LexItem to `name` | |
c181606 | // GetSortedList returns the lsit of LexSymbols in order that they should
// be searched for in the tempalte | |
c181607 | // Top returns the element at the top of the stack or an error if stack is empty | |
c181608 | // Resize changes the size of the underlying buffer | |
c181609 | // Extend changes the size of the underlying buffer, extending it by `extendBy` | |
c181610 | // Grow automatically grows the underlying buffer so that it can hold at
// least `min` elements | |
c181611 | // Get returns the element at position `i` | |
c181612 | // Set sets the element at position `i` to `v`. The stack size is automatically
// adjusted. | |
c181613 | // Push adds an element at the end of the stack | |
c181614 | // Pop removes and returns the item at the end of the stack | |
c181615 | // String returns the textual representation of the stack | |
c181616 | // GetHostIPs returns a list of IP addresses of all host's interfaces. | |
c181617 | // GetPrivateHostIPs returns a list of host's private IP addresses. | |
c181618 | // IsPrivate determines whether a passed IP address is from one of private blocks or not. | |
c181619 | // Identical to os.Environ, but limited to the environment variable equivalents
// for the flags your program cares about. | |
c181620 | // Just like os.Getenv, but with a second return value; a boolean specifying
// if name was actually set in the environment. | |
c181621 | // To be unix'y, we translate flagnames to their uppercase equivalents. | |
c181622 | // NewPolicy returns a default password policy which can be modified | |
c181623 | // CreateRandom returns a random byte string of given length from given byte string | |
c181624 | // Shuffle the given byte string | |
c181625 | // Generate a new password based on given policy | |
c181626 | // Returns same path as Executable, returns just the folder
// path. Excludes the executable name. | |
c181627 | // Ignore is a sentinel option to add ignore error handlers. | |
c181628 | // Sigs is a sentinel option to set the specified signals for shutdown. | |
c181629 | // Logf is a sentinel option to set a logger. | |
c181630 | // Errorf is a sentinel option to set a error logger. | |
c181631 | // New creates a new sentinel server group. | |
c181632 | // Run starts the server group, returning the first encountered error upon
// shutdown. | |
c181633 | // Shutdown calls all registered shutdown funcs. | |
c181634 | // ShutdownIgnore returns if any of the registered ignore funcs reported true. | |
c181635 | // Register registers a server, its shutdown func, and ignore error funcs. | |
c181636 | // Mux creates a new network connection muxer and registers its server,
// shutdown, and ignore error funcs. | |
c181637 | // HTTP creates a HTTP server and registers it with the sentinel. | |
c181638 | // IgnoreError returns a func that will return true when the passed errors
// match. | |
c181639 | // IgnoreNetOpError returns true when the passed error is a net.OpError with
// error "use of closed network connection". | |
c181640 | // convertAndAppendContextFuncs converts and appends funcs in v to o. | |
c181641 | //Router sets up the Router - extracted for testability | |
c181642 | // buildInfoHandler - This is a stop gap and will be added to when we can define what we should display here | |
c181643 | // jsonEncoder is an Encoder that produces JSON-formatted responses. | |
c181644 | // Total errors is the sum of errors with the request overall
// and errors on individual fields. | |
c181645 | // Converts options into CORS headers. | |
c181646 | // Converts options into CORS headers for a preflight response. | |
c181647 | // Looks up if the origin matches one of the patterns
// provided in Options.AllowOrigins patterns. | |
c181648 | // Renderer is a Middleware that maps a render.Render service into the Martini handler chain. An single variadic render.Options
// struct can be optionally provided to configure HTML rendering. The default directory for templates is "templates" and the default
// file extension is ".tmpl".
//
// If MARTINI_ENV is set to "" or "development" then templates will be recompiled on every request. For more performance, set the
// MARTINI_ENV environment variable to "production" | |
c181649 | // Returns the parsed languages in a human readable fashion. | |
c181650 | // Creates a new handler that parses the Accept-Language HTTP header.
//
// The parsed structure is a slice of Accept-Language values stored in an
// AcceptLanguages instance, sorted based on the language qualifier. | |
c181651 | // strip Prefix for every incoming http request | |
c181652 | // UpdateUser updates the User object stored in the session. This is useful incase a change
// is made to the user model that needs to persist across requests. | |
c181653 | // GetById will populate a user object from a database model with
// a matching id. | |
c181654 | // AddressToAccountId converts the provided address into a xdr.AccountId | |
c181655 | // MutateChangeTrust for Asset sets the ChangeTrustOp's Line field | |
c181656 | // MutateChangeTrust for Limit sets the ChangeTrustOp's Limit field | |
c181657 | // Trust is a helper that creates ChangeTrustBuilder | |
c181658 | // RemoveTrust is a helper that creates ChangeTrustBuilder | |
c181659 | // MutatePayment for Asset sets the PaymentOp's Asset field | |
c181660 | // MutatePayment for Destination sets the PaymentOp's Destination field | |
c181661 | // MutatePayment for NativeAmount sets the PaymentOp's currency field to
// native and sets its amount to the provided integer | |
c181662 | // MutatePayment for PayWithPath sets the PathPaymentOp's SendAsset,
// SendMax and Path fields | |
c181663 | // MutateAccountMerge for Destination sets the AccountMergeBuilder's Destination field | |
c181664 | // MustParse is the panicking version of Parse | |
c181665 | // Parse parses the provided as a stellar "amount", i.e. A 64-bit signed integer
// that represents a decimal number with 7 digits of significance in the
// fractional portion of the number. | |
c181666 | // String returns an "amount string" from the provided raw value `v`. | |
c181667 | // CreateOffer creates a new offer | |
c181668 | // CreatePassiveOffer creates a new passive offer | |
c181669 | // UpdateOffer updates an existing offer | |
c181670 | // DeleteOffer deletes an existing offer | |
c181671 | // ManageOffer groups the creation of a new ManageOfferBuilder with a call to Mutate. | |
c181672 | // Mutate applies the provided mutators to this builder's offer or operation. | |
c181673 | // MutateManageOffer for Amount sets the ManageOfferOp's Amount field | |
c181674 | // MutateManageOffer for OfferID sets the ManageOfferOp's OfferID field | |
c181675 | // MutateManageOffer for Rate sets the ManageOfferOp's selling, buying and price fields | |
c181676 | // MutateOperation for SourceAccount sets the operation's SourceAccount
// to the pubilic key for the address provided | |
c181677 | // String returns a string represenation of `p` | |
c181678 | // Transaction groups the creation of a new TransactionBuilder with a call
// to Mutate. | |
c181679 | // Mutate applies the provided TransactionMutators to this builder's transaction | |
c181680 | // Hash returns the hash of this builder's transaction. | |
c181681 | // HashHex returns the hex-encoded hash of this builder's transaction | |
c181682 | // Sign returns an new TransactionEnvelopeBuilder using this builder's
// transaction as the basis and with signatures of that transaction from the
// provided Signers. | |
c181683 | // MutateTransaction for AllowTrustBuilder causes the underylying AllowTrustOp
// to be added to the operation list for the provided transaction | |
c181684 | // MutateTransaction for ChangeTrustBuilder causes the underylying
// CreateAccountOp to be added to the operation list for the provided
// transaction | |
c181685 | // MutateTransaction for CreateAccountBuilder causes the underylying
// CreateAccountOp to be added to the operation list for the provided
// transaction | |
c181686 | // MutateTransaction for Defaults sets reasonable defaults on the transaction being built | |
c181687 | // MutateTransaction for InflationBuilder causes the underylying
// InflationOp to be added to the operation list for the provided
// transaction | |
c181688 | // MutateTransaction for ManageDataBuilder causes the underylying
// ManageData to be added to the operation list for the provided
// transaction | |
c181689 | // MutateTransaction for ManageOfferBuilder causes the underylying
// ManageData to be added to the operation list for the provided
// transaction | |
c181690 | // MutateTransaction for MemoHash sets the memo. | |
c181691 | // MutateTransaction for MemoID sets the memo. | |
c181692 | // MutateTransaction for MemoReturn sets the memo. | |
c181693 | // MutateTransaction for MemoText sets the memo. | |
c181694 | // MutateTransaction for Network sets the Network ID to use when signing this transaction | |
c181695 | // MutateTransaction for PaymentBuilder causes the underylying PaymentOp
// or PathPaymentOp to be added to the operation list for the provided transaction | |
c181696 | // MutateTransaction for SetOptionsBuilder causes the underylying
// SetOptionsOp to be added to the operation list for the provided
// transaction | |
c181697 | // MutateTransaction for Sequence sets the SeqNum on the transaction. | |
c181698 | // MutateTransaction for SourceAccount sets the transaction's SourceAccount
// to the pubilic key for the address provided | |
c181699 | // Scan reads from src into an Int64 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.