Documentation ¶
Overview ¶
Copyright (c) 2021 Cisco Systems, Inc and its affiliates All Rights reserved
Index ¶
- type HelloWorldConsul
- func (p *HelloWorldConsul) Connect() error
- func (p *HelloWorldConsul) DeregisterService() error
- func (p *HelloWorldConsul) FindPrefix() string
- func (p *HelloWorldConsul) GetString(key string, defaultValue string) (string, error)
- func (p *HelloWorldConsul) GetValue(key string) ([]byte, error)
- func (p *HelloWorldConsul) RegisterService() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelloWorldConsul ¶
type HelloWorldConsul struct { Client *api.Client Service api.AgentServiceRegistration Config config.Consul }
func (*HelloWorldConsul) Connect ¶
func (p *HelloWorldConsul) Connect() error
func (*HelloWorldConsul) DeregisterService ¶
func (p *HelloWorldConsul) DeregisterService() error
func (*HelloWorldConsul) FindPrefix ¶
func (p *HelloWorldConsul) FindPrefix() string
func (*HelloWorldConsul) GetString ¶
func (p *HelloWorldConsul) GetString(key string, defaultValue string) (string, error)
func (*HelloWorldConsul) RegisterService ¶
func (p *HelloWorldConsul) RegisterService() error
Click to show internal directories.
Click to hide internal directories.