selector

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 9 Imported by: 0

README

xxx

介绍
  1. xxxx
  2. xxxx
  3. xxxx
安装教程

go get github.com/jageros/hawox

使用例子
package main

import (
	"fmt"
	"github.com/jageros/hawox/xxx"
)

func main() {
	/*
	xxxxx
	xxxxx
	xxxxx
	*/
}
使用说明
  1. xxxx
  2. xxxx
  3. xxxx

Documentation

Index

Constants

View Source
const Prefix = "/pbserver"

Variables

This section is empty.

Functions

func GetName

func GetName(msgId int32) []string

func Update

func Update(mds []*metaData)

Types

type Option

type Option func(o *Options)

Option is etcd registry option.

func Name

func Name(id, name string) Option

func Namespace

func Namespace(ns string) Option

Namespace with registry namespance.

func RegisterTTL

func RegisterTTL(ttl time.Duration) Option

RegisterTTL with Register TTL.

type Options

type Options struct {
	Id        string
	Namespace string
	Name      string
	Ttl       time.Duration
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry is etcd registry.

func Initialize

func Initialize(ctx contextx.Context, client *clientv3.Client, opts ...Option) (r *Registry)

func (*Registry) Register

func (r *Registry) Register() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL