rainbond: github.com/goodrain/rainbond/discover/config Index | Files

package config

import "github.com/goodrain/rainbond/discover/config"

Index

Package Files

config.go

type DiscoverConfig Uses

type DiscoverConfig struct {
    Ctx                  context.Context
    EtcdClusterEndpoints []string
}

DiscoverConfig discover config

type Endpoint Uses

type Endpoint struct {
    Name   string `json:"name"`
    URL    string `json:"url"`
    Weight int    `json:"weight"`
    Mode   int    `json:"-"` //0 表示URL变化,1表示Weight变化 ,2表示全变化
}

type Operation Uses

type Operation int

Operation 实例操作类型

const (
    ADD Operation = iota
    DELETE
    UPDATE
    SYNC
)

Package config imports 1 packages (graph) and is imported by 9 packages. Updated 2018-04-24. Refresh now. Tools for package owners.