consul

package
v0.0.0-...-258337a Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright (c) 2021 Cisco Systems, Inc and its affiliates All Rights reserved

Index

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 NewConsul

func NewConsul(cfg *config.Config) (HelloWorldConsul, error)

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) GetValue

func (p *HelloWorldConsul) GetValue(key string) ([]byte, error)

func (*HelloWorldConsul) RegisterService

func (p *HelloWorldConsul) RegisterService() error

Jump to

Keyboard shortcuts

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