handler

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PathSplitter = "."
	WatchTopic   = "go.micro.config.events"
)

Functions

func Watch

func Watch(id string) (*watcher, error)

Watch created by a client RPC request

func Watcher

func Watcher(ctx context.Context, ch *pb.WatchResponse) error

Used as a subscriber between config services for events

Types

type Config

type Config struct {
	Store store.Store
}

func (*Config) Create

func (c *Config) Create(ctx context.Context, req *pb.CreateRequest, rsp *pb.CreateResponse) error

func (*Config) Delete

func (c *Config) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error

func (*Config) List

func (c *Config) List(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) (err error)

func (*Config) Read

func (c *Config) Read(ctx context.Context, req *pb.ReadRequest, rsp *pb.ReadResponse) error

func (*Config) Update

func (c *Config) Update(ctx context.Context, req *pb.UpdateRequest, rsp *pb.UpdateResponse) error

func (*Config) Watch

func (c *Config) Watch(ctx context.Context, req *pb.WatchRequest, stream pb.Config_WatchStream) error

Jump to

Keyboard shortcuts

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