redis pubsub

package redis import ( "context" "fmt" "strings" "sync" "time" "github.com/redis/go-redis/v9/internal" "github.com/redis/go-redis/v9/internal/pool" "github.com/redis/go-redis/v9/internal/proto" ) // PubSub implements Pub/Sub commands as descri
  • Views: 0
  • Keywords: redis,

carbon addsub

package examples import ( "fmt" "github.com/uniplaces/carbon" ) func addSub() { t1, _ := carbon.Create(2010, 1, 4, 19, 10, 10, 0, "UTC") t1 = t1.AddYear() // 2011-01-04 19:10:10 t1 = t1.AddMonth() // 2011-02-04 19:10:10 t1 = t1.SubDay()
  • Views: 0
  • Keywords:

NATS users

# Users configuration include ./passwords.conf; users = [ {user: alice, password: $ALICE_PASS} {user: bob, password: $BOB_PASS} ]
  • Views: 0
  • Keywords: NATS,

NATS client id auth key

-----BEGIN PRIVATE KEY----- MIIEwAIBADANBgkqhkiG9w0BAQEFAASCBKowggSmAgEAAoIBAQDkL+y6Zoc2qAmr ZpvMdyRQ4ClNyZjInwgcpWYKtoM4ijrzPBZk/hO2Ar1QZH27GaXs4RwvHDC+zQfE Mx+u4n/FEfDTHSpLKGbBoAlSd2R1t4apY8+kKcithz15cWsZNIYjgO3t5uspxG8s msjv2mpO5cnO70iHJhHT8ixP0qi2JrE
  • Views: 0
  • Keywords: NATS,

casbin rbac_api_with_domains

// Copyright 2017 The casbin Authors. All Rights Reserved. // // 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 // // htt

NATS server

-----BEGIN CERTIFICATE----- MIIDoTCCAomgAwIBAgIUKrcs29uAsjrZ53kR88U2UAiz2FgwDQYJKoZIhvcNAQEL BQAwTDEkMCIGA1UEChMbU3luYWRpYSBDb21tdW5pY2F0aW9ucyBJbmMuMRAwDgYD VQQLEwdOQVRTLmlvMRIwEAYDVQQDEwlsb2NhbGhvc3QwHhcNMTkwMjE4MTgxOTAw WhcNMjQwMjE3MTgxOTAwWjAwMRowGAY
  • Views: 0
  • Keywords: NATS,

redis writer

package proto import ( "encoding" "fmt" "io" "net" "strconv" "time" "github.com/redis/go-redis/v9/internal/util" ) type writer interface { io.Writer io.ByteWriter // WriteString implement io.StringWriter. WriteString(s string) (n int, err e
  • Views: 0
  • Keywords: redis,

dot changes

// Copyright (C) 2018 rameshvk. All rights reserved. // Use of this source code is governed by a MIT-style license // that can be found in the LICENSE file. // Package changes implements the core mutation types for OT. // // The three basic types are Re
  • Views: 0
  • Keywords: dot,

NATS tls_curve_prefs

# Simple TLS config file listen: 127.0.0.1:4443 tls { cert_file: "./configs/certs/server.pem" key_file: "./configs/certs/key.pem" timeout: 2 curve_preferences: [ "CurveP256" ] }
  • Views: 0
  • Keywords: NATS,

NATS runTestsOnTravis

#!/bin/sh set -e if [ "$1" = "compile" ]; then # First check that NATS builds. go build; # Now run the linters. # TODO: Pinning a specific commit here as there is a bugfix merged that # fixes gofmt on macOS Ventura, we can undo th
  • Views: 0
  • Keywords: NATS,