_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c181100
// parseInt treats the given bytes as a big-endian, signed integer and returns // the result.
c181101
// parseBigInt treats the given bytes as a big-endian, signed integer and returns // the result.
c181102
// BIT STRING // parseBitString parses an ASN.1 bit string from the given byte slice and returns it.
c181103
// OBJECT IDENTIFIER // parseObjectIdentifier parses an OBJECT IDENTIFIER from the given bytes and // returns it. An object identifier is a sequence of variable length integers // that are assigned in a hierarchy.
c181104
// parseBase128Int parses a base-128 encoded int from the given offset in the // given byte slice. It returns the value and the new offset.
c181105
// parseGeneralizedTime parses the GeneralizedTime from the given byte slice // and returns the resulting time.
c181106
// PrintableString // parsePrintableString parses a ASN.1 PrintableString from the given byte // array and returns it.
c181107
// isPrintable reports whether the given b is in the ASN.1 PrintableString set.
c181108
// parseSequenceOf is used for SEQUENCE OF and SET OF values. It tries to parse // a number of ASN.1 values from the given byte slice and returns them as a // slice of Go values of the given type.
c181109
// invalidLength returns true iff offset + length > sliceLength, or if the // addition would overflow.
c181110
// setDefaultValue is used to install a default value, from a tag string, into // a Value. It is successful if the field was optional, even if a default value // wasn't provided or it failed to install it into the Value.
c181111
// UnmarshalWithParams allows field parameters to be specified for the // top-level element. The form of the params is the same as the field tags.
c181112
// Given a tag string with the format specified in the package comment, // parseFieldParameters will parse it into a fieldParameters structure, // ignoring unknown parts of the string.
c181113
// Given a reflected Go type, getUniversalType returns the default tag number // and expected compound flag.
c181114
// DecodeString decodes the given base32 encodeed bytes
c181115
// User returns the Mail notifier.
c181116
// Save mail notifier adds a new mail notifier, it replaces the existing one if there // is already a notifier available.
c181117
// RegisterPlugin registers a plugin by name. This // is expected to happen during app startup.
c181118
//Set up the indexes for the Db //Can be called during the initialization
c181119
// Until loops until stop channel is closed, running f every period. // Catches any panics, and keeps going. f may not be invoked if // stop channel is already closed.
c181120
// logPanic logs the caller tree when a panic occurs.
c181121
// User returns the user with the given username. Error is set to // ErrMissingUser if user is not found.
c181122
// Users returns a slice of all users.
c181123
// LoadCACertFile reads in a CA cert file that may contain multiple certs // and gives you back a proper x509.CertPool for your fun and proffit
c181124
// NewAuth returns an auth
c181125
// ValidateRequest perfomrs verification on the TLS certs and chain
c181126
// Process is the main Entrypoint
c181127
// ValidateCN checks the CN of a verified peer cert and raises a 403 if the CN doesn't match any CN in the AllowedCNs list.
c181128
// ValidateOU checks the OU of a verified peer cert and raises 403 if the OU doesn't match any OU in the AllowedOUs list.
c181129
// KeyLen returns the minimum number of bytes required to represent x; the result is 1 for x == 0. // Returns 1-8.
c181130
// DefaultConfig provides a default configuration to create a certificate // signer.
c181131
// New creates a new configured certificate signer.
c181132
// New creates a new configured Vault factory.
c181133
// DefaultServiceConfig provides a default configuration to create a PKI controller.
c181134
// NewService creates a new configured PKI controller.
c181135
// PKI management.
c181136
// IsNoVaultHandlerDefined asserts a dirty string matching against the error // message provided by err. This is necessary due to the poor error handling // design of the Vault library we are using.
c181137
// New takes a configuration and returns a configured service.
c181138
// Create creates a role if it doesn't exist yet. Creating roles is idempotent // in the vault api, so no need to check if it already exists.
c181139
// CreateJob creates a basic empty configuration with some defaults.
c181140
// Run starts the job
c181141
// newWatcher is the internal function for properly setting up a new watcher.
c181142
// Start begins watching the files, sending notifications when files change. // It returns a channel that notifications are sent on.
c181143
// Stop listening for changes to the files.
c181144
// Returns true if the Watcher is actively looking for changes.
c181145
// The Add method takes a variable number of string arguments and adds those // files to the watch list, returning the number of files added.
c181146
// goroutine that cycles through the list of paths and checks for updates.
c181147
// Watching returns a list of the files being watched.
c181148
// State returns a slice of Notifications representing the files being watched // and their last event.
c181149
// Store stores an error into the request's context. It panics if the request // was not configured to store errors.
c181150
// Get retrieves an error from the request's context. It returns nil if the // request was not configured to store errors.
c181151
// Catch creates middleware that processes errors stored while serving a // request. Errors are passed to the callback, which should write them to the // response in an appropriate format. This is usually the outermost middleware // in a chain.
c181152
// Try converts a handler to a standard http.Handler, storing any error in the // request's context.
c181153
// Recover creates middleware that can recover from a panic in a handler, // storing a PanicError for future handling.
c181154
//go client for performance testing
c181155
//SyncHandler is a small wrapper around Sync which simply synchronises //all incoming connections. Use Sync if you wish to implement user authentication //or any other request-time checks.
c181156
//connect using the provided transport //and block until connection is ready
c181157
//send to connection, ensure only 1 concurrent sender
c181158
//NumConnections currently active
c181159
//Push the changes from this object to all connected clients. //Push is thread-safe and is throttled so it can be called //with abandon. Returns false if a Push is already in progress.
c181160
//non-blocking push
c181161
// OutForward ... recieve FluentRecordSet from channel, and send it to passed loggers until success.
c181162
// InTail follow the tail of file and post BulkMessage to channel.
c181163
// New creates a new Logger.
c181164
// IsReconnecting return true if a reconnecting process in progress.
c181165
// Notification is the builder
c181166
// NullNotification is the builder for tests where no side effects are desired
c181167
// New creates a new CA.
c181168
// Issue issues a new Identity with this one as its parent.
c181169
// Subject is an Option that sets a identity's subject field.
c181170
// PrivateKey is an Option for setting the identity's private key.
c181171
// NotBefore is an Option for setting the identity's certificate's NotBefore.
c181172
// NotAfter is an Option for setting the identity's certificate's NotAfter.
c181173
// IssuingCertificateURL is an Option for setting the identity's certificate's // IssuingCertificateURL.
c181174
// OCSPServer is an Option for setting the identity's certificate's OCSPServer.
c181175
// New creates a new API Client for a Telegram bot using the apiKey // provided. // It will call the GetMe method to retrieve the bots id, name and // username. // // This bot uses long polling to retrieve its updates. If a webhook was set // for the given apiKey, this will remove it.
c181176
// NewWithWebhook creates a new API client for a Telegram bot using the apiKey // provided. It will call the GetMe method to retrieve the bots id, name and // username. // In addition to the API client, a http.HandlerFunc will be returned. This // handler func reacts to webhook requests and will put updates into the //...
c181177
// Close shuts down this client. // Until Close returns, new updates and errors will be put into the // respective channels. // Note that, if no updates are received, this function may block for up to // one minute, which is the time interval // for long polling.
c181178
// GetMe returns basic information about the bot in form of a UserResponse.
c181179
// RunBot runs a bot. // It will block until either something very bad happens or closing is closed.
c181180
// RunBotOnWebhook runs the given BotFunc with a webhook.
c181181
// NewOutgoingMessage creates a new outgoing message.
c181182
// NewOutgoingLocation creates a new outgoing location.
c181183
// NewOutgoingVenue creates a new outgoing location.
c181184
// NewOutgoingVideo creates a new outgoing video file.
c181185
// NewOutgoingVideoResend creates a new outgoing video file for re-sending.
c181186
// NewOutgoingPhoto creates a new outgoing photo.
c181187
// NewOutgoingPhotoResend creates a new outgoing photo for re-sending.
c181188
// NewOutgoingSticker creates a new outgoing sticker message.
c181189
// NewOutgoingStickerResend creates a new outgoing sticker message for // re-sending.
c181190
// NewOutgoingVoice creates a new outgoing voice note.
c181191
// NewOutgoingVoiceResend creates a new outgoing voice note for re-sending.
c181192
// NewOutgoingAudio creates a new outgoing audio file.
c181193
// NewOutgoingAudioResend creates a new outgoing audio file for re-sending.
c181194
// NewOutgoingDocument creates a new outgoing file.
c181195
// NewOutgoingDocumentResend creates a new outgoing file for re-sending.
c181196
// NewOutgoingForward creates a new outgoing, forwarded message.
c181197
// NewOutgoingChatAction creates a new outgoing chat action.
c181198
// NewOutgoingUserProfilePhotosRequest creates a new request for a users // profile photos.
c181199
// NewOutgoingKickChatMember creates a request to kick a member from a // group chat or channel.