Documentation ¶
Overview ¶
Package go_micro_srv_config_config is a generated protocol buffer package.
It is generated from these files:
github.com/pydio/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 ¶
- func RegisterConfigHandler(s server.Server, hdlr ConfigHandler, opts ...server.HandlerOption)
- type AuditLogRequest
- type AuditLogResponse
- type Change
- type ChangeLog
- type Config
- func (h *Config) AuditLog(ctx context.Context, in *AuditLogRequest, out *AuditLogResponse) error
- func (h *Config) Create(ctx context.Context, in *CreateRequest, out *CreateResponse) error
- func (h *Config) Delete(ctx context.Context, in *DeleteRequest, out *DeleteResponse) error
- func (h *Config) Read(ctx context.Context, in *ReadRequest, out *ReadResponse) error
- func (h *Config) Search(ctx context.Context, in *SearchRequest, out *SearchResponse) error
- func (h *Config) Update(ctx context.Context, in *UpdateRequest, out *UpdateResponse) error
- func (h *Config) Watch(ctx context.Context, stream server.Streamer) error
- type ConfigClient
- type ConfigHandler
- type Config_WatchClient
- type Config_WatchStream
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type ReadRequest
- type ReadResponse
- type SearchRequest
- type SearchResponse
- type UpdateRequest
- type UpdateResponse
- type WatchRequest
- type WatchResponse
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) GetChangeSet ¶
func (m *Change) GetChangeSet() *go_micro_os_config.ChangeSet
func (*Change) ProtoMessage ¶
func (*Change) ProtoMessage()
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) ProtoMessage ¶
func (*ChangeLog) ProtoMessage()
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
type ConfigClient ¶
type ConfigClient interface { Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*UpdateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error) Search(ctx context.Context, in *SearchRequest, opts ...client.CallOption) (*SearchResponse, error) Read(ctx context.Context, in *ReadRequest, opts ...client.CallOption) (*ReadResponse, error) AuditLog(ctx context.Context, in *AuditLogRequest, opts ...client.CallOption) (*AuditLogResponse, error) Watch(ctx context.Context, in *WatchRequest, opts ...client.CallOption) (Config_WatchClient, error) }
func NewConfigClient ¶
func NewConfigClient(serviceName string, c client.Client) ConfigClient
type ConfigHandler ¶
type ConfigHandler interface { Create(context.Context, *CreateRequest, *CreateResponse) error Update(context.Context, *UpdateRequest, *UpdateResponse) error Delete(context.Context, *DeleteRequest, *DeleteResponse) error Search(context.Context, *SearchRequest, *SearchResponse) error Read(context.Context, *ReadRequest, *ReadResponse) error AuditLog(context.Context, *AuditLogRequest, *AuditLogResponse) error Watch(context.Context, *WatchRequest, Config_WatchStream) error }
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
Click to show internal directories.
Click to hide internal directories.