config

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service2

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

Service2 service.

func New2

func New2(c *rpc.ClientConfig) (s *Service2)

New2 new a config service.

func (*Service2) ClearHost

func (s *Service2) ClearHost(c context.Context, svr string) (err error)

ClearHost update token in config-service

func (*Service2) Force

func (s *Service2) Force(c context.Context, arg *model.ArgConf) (err error)

Force push new host ver to config-service

func (*Service2) Hosts

func (s *Service2) Hosts(c context.Context, svr string) (hosts []*model.Host, err error)

Hosts get host list.

func (*Service2) Push

func (s *Service2) Push(c context.Context, arg *model.ArgConf) (err error)

Push push new ver to config-service

func (*Service2) PushV4

func (s *Service2) PushV4(c context.Context, arg *model.ArgConf) (err error)

PushV4 push new ver to config-service

func (*Service2) SetToken

func (s *Service2) SetToken(c context.Context, arg *model.ArgToken) (err error)

SetToken update token in config-service

func (*Service2) SetTokenV4

func (s *Service2) SetTokenV4(c context.Context, arg *model.ArgToken) (err error)

SetTokenV4 update token in config-service

Jump to

Keyboard shortcuts

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