go_micro_srv_config_config

package
v0.0.0-...-b4f8b81 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package go_micro_srv_config_config is a generated protocol buffer package.

It is generated from these files:

go.gitbaidu.com/micro/config-srv/proto/config/config.proto

It has these top-level messages:

Change
ChangeLog
CreateRequest
CreateResponse
UpdateRequest
UpdateResponse
DeleteRequest
DeleteResponse
ReadRequest
ReadResponse
SearchRequest
SearchResponse
WatchRequest
WatchResponse
AuditLogRequest
AuditLogResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterConfigHandler

func RegisterConfigHandler(s server.Server, hdlr ConfigHandler, opts ...server.HandlerOption)

Types

type AuditLogRequest

type AuditLogRequest struct {
	// from unix timestamp
	From int64 `protobuf:"varint,1,opt,name=from" json:"from,omitempty"`
	// to unix timestamp
	To int64 `protobuf:"varint,2,opt,name=to" json:"to,omitempty"`
	// limit number items
	Limit int64 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
	// the offset
	Offset int64 `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"`
	// reverse the order
	Reverse bool `protobuf:"varint,5,opt,name=reverse" json:"reverse,omitempty"`
}

func (*AuditLogRequest) Descriptor

func (*AuditLogRequest) Descriptor() ([]byte, []int)

func (*AuditLogRequest) ProtoMessage

func (*AuditLogRequest) ProtoMessage()

func (*AuditLogRequest) Reset

func (m *AuditLogRequest) Reset()

func (*AuditLogRequest) String

func (m *AuditLogRequest) String() string

type AuditLogResponse

type AuditLogResponse struct {
	Changes []*ChangeLog `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"`
}

func (*AuditLogResponse) Descriptor

func (*AuditLogResponse) Descriptor() ([]byte, []int)

func (*AuditLogResponse) GetChanges

func (m *AuditLogResponse) GetChanges() []*ChangeLog

func (*AuditLogResponse) ProtoMessage

func (*AuditLogResponse) ProtoMessage()

func (*AuditLogResponse) Reset

func (m *AuditLogResponse) Reset()

func (*AuditLogResponse) String

func (m *AuditLogResponse) String() string

type Change

type Change struct {
	Id        string                        `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Path      string                        `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
	Author    string                        `protobuf:"bytes,3,opt,name=author" json:"author,omitempty"`
	Comment   string                        `protobuf:"bytes,4,opt,name=comment" json:"comment,omitempty"`
	Timestamp int64                         `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"`
	ChangeSet *go_micro_os_config.ChangeSet `protobuf:"bytes,6,opt,name=change_set,json=changeSet" json:"change_set,omitempty"`
}

func (*Change) Descriptor

func (*Change) Descriptor() ([]byte, []int)

func (*Change) GetChangeSet

func (m *Change) GetChangeSet() *go_micro_os_config.ChangeSet

func (*Change) ProtoMessage

func (*Change) ProtoMessage()

func (*Change) Reset

func (m *Change) Reset()

func (*Change) String

func (m *Change) String() string

type ChangeLog

type ChangeLog struct {
	Action string  `protobuf:"bytes,1,opt,name=action" json:"action,omitempty"`
	Change *Change `protobuf:"bytes,2,opt,name=change" json:"change,omitempty"`
}

func (*ChangeLog) Descriptor

func (*ChangeLog) Descriptor() ([]byte, []int)

func (*ChangeLog) GetChange

func (m *ChangeLog) GetChange() *Change

func (*ChangeLog) ProtoMessage

func (*ChangeLog) ProtoMessage()

func (*ChangeLog) Reset

func (m *ChangeLog) Reset()

func (*ChangeLog) String

func (m *ChangeLog) String() string

type Config

type Config struct {
	ConfigHandler
}

func (*Config) AuditLog

func (h *Config) AuditLog(ctx context.Context, in *AuditLogRequest, out *AuditLogResponse) error

func (*Config) Create

func (h *Config) Create(ctx context.Context, in *CreateRequest, out *CreateResponse) error

func (*Config) Delete

func (h *Config) Delete(ctx context.Context, in *DeleteRequest, out *DeleteResponse) error

func (*Config) Read

func (h *Config) Read(ctx context.Context, in *ReadRequest, out *ReadResponse) error

func (*Config) Search

func (h *Config) Search(ctx context.Context, in *SearchRequest, out *SearchResponse) error

func (*Config) Update

func (h *Config) Update(ctx context.Context, in *UpdateRequest, out *UpdateResponse) error

func (*Config) Watch

func (h *Config) Watch(ctx context.Context, stream server.Stream) error

type ConfigClient

func NewConfigClient

func NewConfigClient(serviceName string, c client.Client) ConfigClient

type Config_WatchClient

type Config_WatchClient interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*WatchResponse, error)
}

type Config_WatchStream

type Config_WatchStream interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*WatchResponse) error
}

type CreateRequest

type CreateRequest struct {
	Change *Change `protobuf:"bytes,1,opt,name=change" json:"change,omitempty"`
}

func (*CreateRequest) Descriptor

func (*CreateRequest) Descriptor() ([]byte, []int)

func (*CreateRequest) GetChange

func (m *CreateRequest) GetChange() *Change

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset

func (m *CreateRequest) Reset()

func (*CreateRequest) String

func (m *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
}

func (*CreateResponse) Descriptor

func (*CreateResponse) Descriptor() ([]byte, []int)

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) Reset

func (m *CreateResponse) Reset()

func (*CreateResponse) String

func (m *CreateResponse) String() string

type DeleteRequest

type DeleteRequest struct {
	Change *Change `protobuf:"bytes,1,opt,name=change" json:"change,omitempty"`
}

func (*DeleteRequest) Descriptor

func (*DeleteRequest) Descriptor() ([]byte, []int)

func (*DeleteRequest) GetChange

func (m *DeleteRequest) GetChange() *Change

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String

func (m *DeleteRequest) String() string

type DeleteResponse

type DeleteResponse struct {
}

func (*DeleteResponse) Descriptor

func (*DeleteResponse) Descriptor() ([]byte, []int)

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) Reset

func (m *DeleteResponse) Reset()

func (*DeleteResponse) String

func (m *DeleteResponse) String() string

type ReadRequest

type ReadRequest struct {
	Id   string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
}

func (*ReadRequest) Descriptor

func (*ReadRequest) Descriptor() ([]byte, []int)

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) Reset

func (m *ReadRequest) Reset()

func (*ReadRequest) String

func (m *ReadRequest) String() string

type ReadResponse

type ReadResponse struct {
	Change *Change `protobuf:"bytes,1,opt,name=change" json:"change,omitempty"`
}

func (*ReadResponse) Descriptor

func (*ReadResponse) Descriptor() ([]byte, []int)

func (*ReadResponse) GetChange

func (m *ReadResponse) GetChange() *Change

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) Reset

func (m *ReadResponse) Reset()

func (*ReadResponse) String

func (m *ReadResponse) String() string

type SearchRequest

type SearchRequest struct {
	Id     string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Author string `protobuf:"bytes,2,opt,name=author" json:"author,omitempty"`
	Limit  int64  `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
	Offset int64  `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"`
}

func (*SearchRequest) Descriptor

func (*SearchRequest) Descriptor() ([]byte, []int)

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) Reset

func (m *SearchRequest) Reset()

func (*SearchRequest) String

func (m *SearchRequest) String() string

type SearchResponse

type SearchResponse struct {
	Configs []*Change `protobuf:"bytes,1,rep,name=configs" json:"configs,omitempty"`
}

func (*SearchResponse) Descriptor

func (*SearchResponse) Descriptor() ([]byte, []int)

func (*SearchResponse) GetConfigs

func (m *SearchResponse) GetConfigs() []*Change

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) Reset

func (m *SearchResponse) Reset()

func (*SearchResponse) String

func (m *SearchResponse) String() string

type UpdateRequest

type UpdateRequest struct {
	Change *Change `protobuf:"bytes,1,opt,name=change" json:"change,omitempty"`
}

func (*UpdateRequest) Descriptor

func (*UpdateRequest) Descriptor() ([]byte, []int)

func (*UpdateRequest) GetChange

func (m *UpdateRequest) GetChange() *Change

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset

func (m *UpdateRequest) Reset()

func (*UpdateRequest) String

func (m *UpdateRequest) String() string

type UpdateResponse

type UpdateResponse struct {
}

func (*UpdateResponse) Descriptor

func (*UpdateResponse) Descriptor() ([]byte, []int)

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) Reset

func (m *UpdateResponse) Reset()

func (*UpdateResponse) String

func (m *UpdateResponse) String() string

type WatchRequest

type WatchRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*WatchRequest) Descriptor

func (*WatchRequest) Descriptor() ([]byte, []int)

func (*WatchRequest) ProtoMessage

func (*WatchRequest) ProtoMessage()

func (*WatchRequest) Reset

func (m *WatchRequest) Reset()

func (*WatchRequest) String

func (m *WatchRequest) String() string

type WatchResponse

type WatchResponse struct {
	Id        string                        `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	ChangeSet *go_micro_os_config.ChangeSet `protobuf:"bytes,2,opt,name=change_set,json=changeSet" json:"change_set,omitempty"`
}

func (*WatchResponse) Descriptor

func (*WatchResponse) Descriptor() ([]byte, []int)

func (*WatchResponse) GetChangeSet

func (m *WatchResponse) GetChangeSet() *go_micro_os_config.ChangeSet

func (*WatchResponse) ProtoMessage

func (*WatchResponse) ProtoMessage()

func (*WatchResponse) Reset

func (m *WatchResponse) Reset()

func (*WatchResponse) String

func (m *WatchResponse) String() string

Jump to

Keyboard shortcuts

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