Documentation ¶
Overview ¶
Copyright (c) 2016 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AuditPutCommandCode = mc.CommandCode(0x27)
opcode for memcached audit command
var PoolClients = 5
var ReadTimeout = 1000 * time.Millisecond
read timeout
var WriteTimeout = 1000 * time.Millisecond
write timeout
Functions ¶
Types ¶
type AuditSvc ¶
type AuditSvc struct {
// contains filtered or unexported fields
}
func NewAuditSvc ¶
func (*AuditSvc) GetNonPoolClient ¶
Get a new connection that is not part of the general pool. The caller is responsible for its management.
type CommonAuditFields ¶
type CommonAuditFields struct { GenericFields Local *addressFields `json:"local,omitempty"` Remote *addressFields `json:"remote,omitempty"` }
func GetCommonAuditFields ¶
func GetCommonAuditFields(req *http.Request) CommonAuditFields
type GenericFields ¶
type GenericFields struct { Timestamp string `json:"timestamp"` RealUserid RealUserId `json:"real_userid"` }
func GetAuditBasicFields ¶
func GetAuditBasicFields(req *http.Request) GenericFields