Documentation ¶
Overview ¶
Package configpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterConfigHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterConfigHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ConfigClient) error
- func RegisterConfigHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ConfigServer) error
- func RegisterConfigServer(s *grpc.Server, srv ConfigServer)
- type ConfigClient
- type ConfigEntry
- func (*ConfigEntry) Descriptor() ([]byte, []int)
- func (m *ConfigEntry) GetName() string
- func (m *ConfigEntry) GetValue() string
- func (m *ConfigEntry) Marshal() (dAtA []byte, err error)
- func (m *ConfigEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *ConfigEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConfigEntry) ProtoMessage()
- func (m *ConfigEntry) Reset()
- func (m *ConfigEntry) Size() (n int)
- func (m *ConfigEntry) String() string
- func (m *ConfigEntry) Unmarshal(dAtA []byte) error
- func (m *ConfigEntry) XXX_DiscardUnknown()
- func (m *ConfigEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigEntry) XXX_Merge(src proto.Message)
- func (m *ConfigEntry) XXX_Size() int
- func (m *ConfigEntry) XXX_Unmarshal(b []byte) error
- type ConfigKind
- func (*ConfigKind) Descriptor() ([]byte, []int)
- func (m *ConfigKind) GetGlobal() *Global
- func (m *ConfigKind) GetKind() isConfigKind_Kind
- func (m *ConfigKind) GetLocal() *Local
- func (m *ConfigKind) Marshal() (dAtA []byte, err error)
- func (m *ConfigKind) MarshalTo(dAtA []byte) (int, error)
- func (m *ConfigKind) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConfigKind) ProtoMessage()
- func (m *ConfigKind) Reset()
- func (m *ConfigKind) Size() (n int)
- func (m *ConfigKind) String() string
- func (m *ConfigKind) Unmarshal(dAtA []byte) error
- func (m *ConfigKind) XXX_DiscardUnknown()
- func (m *ConfigKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigKind) XXX_Merge(src proto.Message)
- func (*ConfigKind) XXX_OneofWrappers() []interface{}
- func (m *ConfigKind) XXX_Size() int
- func (m *ConfigKind) XXX_Unmarshal(b []byte) error
- type ConfigKind_Global
- type ConfigKind_Local
- type ConfigServer
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)
- func (m *CreateRequest) GetComponent() string
- func (m *CreateRequest) GetComponentId() string
- func (m *CreateRequest) GetConfig() string
- func (m *CreateRequest) GetHeader() *Header
- func (m *CreateRequest) GetVersion() *Version
- func (m *CreateRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateRequest) ProtoMessage()
- func (m *CreateRequest) Reset()
- func (m *CreateRequest) Size() (n int)
- func (m *CreateRequest) String() string
- func (m *CreateRequest) Unmarshal(dAtA []byte) error
- func (m *CreateRequest) XXX_DiscardUnknown()
- func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRequest) XXX_Merge(src proto.Message)
- func (m *CreateRequest) XXX_Size() int
- func (m *CreateRequest) XXX_Unmarshal(b []byte) error
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)
- func (m *CreateResponse) GetConfig() string
- func (m *CreateResponse) GetHeader() *Header
- func (m *CreateResponse) GetStatus() *Status
- func (m *CreateResponse) GetVersion() *Version
- func (m *CreateResponse) Marshal() (dAtA []byte, err error)
- func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateResponse) ProtoMessage()
- func (m *CreateResponse) Reset()
- func (m *CreateResponse) Size() (n int)
- func (m *CreateResponse) String() string
- func (m *CreateResponse) Unmarshal(dAtA []byte) error
- func (m *CreateResponse) XXX_DiscardUnknown()
- func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateResponse) XXX_Merge(src proto.Message)
- func (m *CreateResponse) XXX_Size() int
- func (m *CreateResponse) XXX_Unmarshal(b []byte) error
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) GetHeader() *Header
- func (m *DeleteRequest) GetKind() *ConfigKind
- func (m *DeleteRequest) GetVersion() *Version
- func (m *DeleteRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) Size() (n int)
- func (m *DeleteRequest) String() string
- func (m *DeleteRequest) Unmarshal(dAtA []byte) error
- func (m *DeleteRequest) XXX_DiscardUnknown()
- func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRequest) XXX_Merge(src proto.Message)
- func (m *DeleteRequest) XXX_Size() int
- func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)
- func (m *DeleteResponse) GetHeader() *Header
- func (m *DeleteResponse) GetStatus() *Status
- func (m *DeleteResponse) GetVersion() *Version
- func (m *DeleteResponse) Marshal() (dAtA []byte, err error)
- func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteResponse) ProtoMessage()
- func (m *DeleteResponse) Reset()
- func (m *DeleteResponse) Size() (n int)
- func (m *DeleteResponse) String() string
- func (m *DeleteResponse) Unmarshal(dAtA []byte) error
- func (m *DeleteResponse) XXX_DiscardUnknown()
- func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteResponse) XXX_Merge(src proto.Message)
- func (m *DeleteResponse) XXX_Size() int
- func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
- type GetAllRequest
- func (*GetAllRequest) Descriptor() ([]byte, []int)
- func (m *GetAllRequest) GetHeader() *Header
- func (m *GetAllRequest) Marshal() (dAtA []byte, err error)
- func (m *GetAllRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAllRequest) ProtoMessage()
- func (m *GetAllRequest) Reset()
- func (m *GetAllRequest) Size() (n int)
- func (m *GetAllRequest) String() string
- func (m *GetAllRequest) Unmarshal(dAtA []byte) error
- func (m *GetAllRequest) XXX_DiscardUnknown()
- func (m *GetAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllRequest) XXX_Merge(src proto.Message)
- func (m *GetAllRequest) XXX_Size() int
- func (m *GetAllRequest) XXX_Unmarshal(b []byte) error
- type GetAllResponse
- func (*GetAllResponse) Descriptor() ([]byte, []int)
- func (m *GetAllResponse) GetHeader() *Header
- func (m *GetAllResponse) GetLocalConfigs() []*LocalConfig
- func (m *GetAllResponse) GetStatus() *Status
- func (m *GetAllResponse) Marshal() (dAtA []byte, err error)
- func (m *GetAllResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAllResponse) ProtoMessage()
- func (m *GetAllResponse) Reset()
- func (m *GetAllResponse) Size() (n int)
- func (m *GetAllResponse) String() string
- func (m *GetAllResponse) Unmarshal(dAtA []byte) error
- func (m *GetAllResponse) XXX_DiscardUnknown()
- func (m *GetAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllResponse) XXX_Merge(src proto.Message)
- func (m *GetAllResponse) XXX_Size() int
- func (m *GetAllResponse) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetComponent() string
- func (m *GetRequest) GetComponentId() string
- func (m *GetRequest) GetHeader() *Header
- func (m *GetRequest) GetVersion() *Version
- func (m *GetRequest) Marshal() (dAtA []byte, err error)
- func (m *GetRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) Size() (n int)
- func (m *GetRequest) String() string
- func (m *GetRequest) Unmarshal(dAtA []byte) error
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetConfig() string
- func (m *GetResponse) GetHeader() *Header
- func (m *GetResponse) GetStatus() *Status
- func (m *GetResponse) GetVersion() *Version
- func (m *GetResponse) Marshal() (dAtA []byte, err error)
- func (m *GetResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) Size() (n int)
- func (m *GetResponse) String() string
- func (m *GetResponse) Unmarshal(dAtA []byte) error
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type Global
- func (*Global) Descriptor() ([]byte, []int)
- func (m *Global) GetComponent() string
- func (m *Global) Marshal() (dAtA []byte, err error)
- func (m *Global) MarshalTo(dAtA []byte) (int, error)
- func (m *Global) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Global) ProtoMessage()
- func (m *Global) Reset()
- func (m *Global) Size() (n int)
- func (m *Global) String() string
- func (m *Global) Unmarshal(dAtA []byte) error
- func (m *Global) XXX_DiscardUnknown()
- func (m *Global) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Global) XXX_Merge(src proto.Message)
- func (m *Global) XXX_Size() int
- func (m *Global) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetClusterId() uint64
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (m *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type Local
- func (*Local) Descriptor() ([]byte, []int)
- func (m *Local) GetComponentId() string
- func (m *Local) Marshal() (dAtA []byte, err error)
- func (m *Local) MarshalTo(dAtA []byte) (int, error)
- func (m *Local) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Local) ProtoMessage()
- func (m *Local) Reset()
- func (m *Local) Size() (n int)
- func (m *Local) String() string
- func (m *Local) Unmarshal(dAtA []byte) error
- func (m *Local) XXX_DiscardUnknown()
- func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Local) XXX_Merge(src proto.Message)
- func (m *Local) XXX_Size() int
- func (m *Local) XXX_Unmarshal(b []byte) error
- type LocalConfig
- func (*LocalConfig) Descriptor() ([]byte, []int)
- func (m *LocalConfig) GetComponent() string
- func (m *LocalConfig) GetComponentId() string
- func (m *LocalConfig) GetConfig() string
- func (m *LocalConfig) GetVersion() *Version
- func (m *LocalConfig) Marshal() (dAtA []byte, err error)
- func (m *LocalConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *LocalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LocalConfig) ProtoMessage()
- func (m *LocalConfig) Reset()
- func (m *LocalConfig) Size() (n int)
- func (m *LocalConfig) String() string
- func (m *LocalConfig) Unmarshal(dAtA []byte) error
- func (m *LocalConfig) XXX_DiscardUnknown()
- func (m *LocalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocalConfig) XXX_Merge(src proto.Message)
- func (m *LocalConfig) XXX_Size() int
- func (m *LocalConfig) XXX_Unmarshal(b []byte) error
- type Status
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) GetCode() StatusCode
- func (m *Status) GetMessage() string
- func (m *Status) Marshal() (dAtA []byte, err error)
- func (m *Status) MarshalTo(dAtA []byte) (int, error)
- func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) Size() (n int)
- func (m *Status) String() string
- func (m *Status) Unmarshal(dAtA []byte) error
- func (m *Status) XXX_DiscardUnknown()
- func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Status) XXX_Merge(src proto.Message)
- func (m *Status) XXX_Size() int
- func (m *Status) XXX_Unmarshal(b []byte) error
- type StatusCode
- type UnimplementedConfigServer
- func (*UnimplementedConfigServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error)
- func (*UnimplementedConfigServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
- func (*UnimplementedConfigServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error)
- func (*UnimplementedConfigServer) GetAll(ctx context.Context, req *GetAllRequest) (*GetAllResponse, error)
- func (*UnimplementedConfigServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)
- func (m *UpdateRequest) GetEntries() []*ConfigEntry
- func (m *UpdateRequest) GetHeader() *Header
- func (m *UpdateRequest) GetKind() *ConfigKind
- func (m *UpdateRequest) GetVersion() *Version
- func (m *UpdateRequest) Marshal() (dAtA []byte, err error)
- func (m *UpdateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateRequest) ProtoMessage()
- func (m *UpdateRequest) Reset()
- func (m *UpdateRequest) Size() (n int)
- func (m *UpdateRequest) String() string
- func (m *UpdateRequest) Unmarshal(dAtA []byte) error
- func (m *UpdateRequest) XXX_DiscardUnknown()
- func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRequest) XXX_Merge(src proto.Message)
- func (m *UpdateRequest) XXX_Size() int
- func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)
- func (m *UpdateResponse) GetConfig() string
- func (m *UpdateResponse) GetHeader() *Header
- func (m *UpdateResponse) GetStatus() *Status
- func (m *UpdateResponse) GetVersion() *Version
- func (m *UpdateResponse) Marshal() (dAtA []byte, err error)
- func (m *UpdateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateResponse) ProtoMessage()
- func (m *UpdateResponse) Reset()
- func (m *UpdateResponse) Size() (n int)
- func (m *UpdateResponse) String() string
- func (m *UpdateResponse) Unmarshal(dAtA []byte) error
- func (m *UpdateResponse) XXX_DiscardUnknown()
- func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateResponse) XXX_Merge(src proto.Message)
- func (m *UpdateResponse) XXX_Size() int
- func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
- type Version
- func (*Version) Descriptor() ([]byte, []int)
- func (m *Version) GetGlobal() uint64
- func (m *Version) GetLocal() uint64
- func (m *Version) Marshal() (dAtA []byte, err error)
- func (m *Version) MarshalTo(dAtA []byte) (int, error)
- func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Version) ProtoMessage()
- func (m *Version) Reset()
- func (m *Version) Size() (n int)
- func (m *Version) String() string
- func (m *Version) Unmarshal(dAtA []byte) error
- func (m *Version) XXX_DiscardUnknown()
- func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Version) XXX_Merge(src proto.Message)
- func (m *Version) XXX_Size() int
- func (m *Version) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthConfigpb = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConfigpb = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupConfigpb = fmt.Errorf("proto: unexpected end of group") )
var StatusCode_name = map[int32]string{
0: "UNKNOWN",
1: "OK",
2: "WRONG_VERSION",
3: "NOT_CHANGE",
4: "COMPONENT_NOT_FOUND",
5: "COMPONENT_ID_NOT_FOUND",
}
var StatusCode_value = map[string]int32{
"UNKNOWN": 0,
"OK": 1,
"WRONG_VERSION": 2,
"NOT_CHANGE": 3,
"COMPONENT_NOT_FOUND": 4,
"COMPONENT_ID_NOT_FOUND": 5,
}
Functions ¶
func RegisterConfigHandler ¶
RegisterConfigHandler registers the http handlers for service Config to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterConfigHandlerClient ¶
func RegisterConfigHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ConfigClient) error
RegisterConfigHandlerClient registers the http handlers for service Config to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ConfigClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ConfigClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ConfigClient" to call the correct interceptors.
func RegisterConfigHandlerFromEndpoint ¶
func RegisterConfigHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterConfigHandlerFromEndpoint is same as RegisterConfigHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterConfigHandlerServer ¶
func RegisterConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ConfigServer) error
RegisterConfigHandlerServer registers the http handlers for service Config to "mux". UnaryRPC :call ConfigServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterConfigHandlerFromEndpoint instead.
func RegisterConfigServer ¶
func RegisterConfigServer(s *grpc.Server, srv ConfigServer)
Types ¶
type ConfigClient ¶
type ConfigClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) }
ConfigClient is the client API for Config service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewConfigClient ¶
func NewConfigClient(cc *grpc.ClientConn) ConfigClient
type ConfigEntry ¶
type ConfigEntry struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
func (*ConfigEntry) Descriptor ¶
func (*ConfigEntry) Descriptor() ([]byte, []int)
func (*ConfigEntry) GetName ¶
func (m *ConfigEntry) GetName() string
func (*ConfigEntry) GetValue ¶
func (m *ConfigEntry) GetValue() string
func (*ConfigEntry) Marshal ¶
func (m *ConfigEntry) Marshal() (dAtA []byte, err error)
func (*ConfigEntry) MarshalToSizedBuffer ¶
func (m *ConfigEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConfigEntry) ProtoMessage ¶
func (*ConfigEntry) ProtoMessage()
func (*ConfigEntry) Reset ¶
func (m *ConfigEntry) Reset()
func (*ConfigEntry) Size ¶
func (m *ConfigEntry) Size() (n int)
func (*ConfigEntry) String ¶
func (m *ConfigEntry) String() string
func (*ConfigEntry) Unmarshal ¶
func (m *ConfigEntry) Unmarshal(dAtA []byte) error
func (*ConfigEntry) XXX_DiscardUnknown ¶
func (m *ConfigEntry) XXX_DiscardUnknown()
func (*ConfigEntry) XXX_Marshal ¶
func (m *ConfigEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigEntry) XXX_Merge ¶
func (m *ConfigEntry) XXX_Merge(src proto.Message)
func (*ConfigEntry) XXX_Size ¶
func (m *ConfigEntry) XXX_Size() int
func (*ConfigEntry) XXX_Unmarshal ¶
func (m *ConfigEntry) XXX_Unmarshal(b []byte) error
type ConfigKind ¶
type ConfigKind struct { // Types that are valid to be assigned to Kind: // *ConfigKind_Local // *ConfigKind_Global Kind isConfigKind_Kind `protobuf_oneof:"kind"` }
func (*ConfigKind) Descriptor ¶
func (*ConfigKind) Descriptor() ([]byte, []int)
func (*ConfigKind) GetGlobal ¶
func (m *ConfigKind) GetGlobal() *Global
func (*ConfigKind) GetKind ¶
func (m *ConfigKind) GetKind() isConfigKind_Kind
func (*ConfigKind) GetLocal ¶
func (m *ConfigKind) GetLocal() *Local
func (*ConfigKind) Marshal ¶
func (m *ConfigKind) Marshal() (dAtA []byte, err error)
func (*ConfigKind) MarshalToSizedBuffer ¶
func (m *ConfigKind) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConfigKind) ProtoMessage ¶
func (*ConfigKind) ProtoMessage()
func (*ConfigKind) Reset ¶
func (m *ConfigKind) Reset()
func (*ConfigKind) Size ¶
func (m *ConfigKind) Size() (n int)
func (*ConfigKind) String ¶
func (m *ConfigKind) String() string
func (*ConfigKind) Unmarshal ¶
func (m *ConfigKind) Unmarshal(dAtA []byte) error
func (*ConfigKind) XXX_DiscardUnknown ¶
func (m *ConfigKind) XXX_DiscardUnknown()
func (*ConfigKind) XXX_Marshal ¶
func (m *ConfigKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigKind) XXX_Merge ¶
func (m *ConfigKind) XXX_Merge(src proto.Message)
func (*ConfigKind) XXX_OneofWrappers ¶
func (*ConfigKind) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ConfigKind) XXX_Size ¶
func (m *ConfigKind) XXX_Size() int
func (*ConfigKind) XXX_Unmarshal ¶
func (m *ConfigKind) XXX_Unmarshal(b []byte) error
type ConfigKind_Global ¶
type ConfigKind_Global struct {
Global *Global `protobuf:"bytes,2,opt,name=global,proto3,oneof" json:"global,omitempty"`
}
func (*ConfigKind_Global) MarshalTo ¶
func (m *ConfigKind_Global) MarshalTo(dAtA []byte) (int, error)
func (*ConfigKind_Global) MarshalToSizedBuffer ¶
func (m *ConfigKind_Global) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConfigKind_Global) Size ¶
func (m *ConfigKind_Global) Size() (n int)
type ConfigKind_Local ¶
type ConfigKind_Local struct {
Local *Local `protobuf:"bytes,1,opt,name=local,proto3,oneof" json:"local,omitempty"`
}
func (*ConfigKind_Local) MarshalToSizedBuffer ¶
func (m *ConfigKind_Local) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConfigKind_Local) Size ¶
func (m *ConfigKind_Local) Size() (n int)
type ConfigServer ¶
type ConfigServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) }
ConfigServer is the server API for Config service.
type CreateRequest ¶
type CreateRequest struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` ComponentId string `protobuf:"bytes,4,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` Config string `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetComponent ¶
func (m *CreateRequest) GetComponent() string
func (*CreateRequest) GetComponentId ¶
func (m *CreateRequest) GetComponentId() string
func (*CreateRequest) GetConfig ¶
func (m *CreateRequest) GetConfig() string
func (*CreateRequest) GetHeader ¶
func (m *CreateRequest) GetHeader() *Header
func (*CreateRequest) GetVersion ¶
func (m *CreateRequest) GetVersion() *Version
func (*CreateRequest) Marshal ¶
func (m *CreateRequest) Marshal() (dAtA []byte, err error)
func (*CreateRequest) MarshalToSizedBuffer ¶
func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) Size ¶
func (m *CreateRequest) Size() (n int)
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
func (*CreateRequest) Unmarshal ¶
func (m *CreateRequest) Unmarshal(dAtA []byte) error
func (*CreateRequest) XXX_DiscardUnknown ¶
func (m *CreateRequest) XXX_DiscardUnknown()
func (*CreateRequest) XXX_Marshal ¶
func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRequest) XXX_Merge ¶
func (m *CreateRequest) XXX_Merge(src proto.Message)
func (*CreateRequest) XXX_Size ¶
func (m *CreateRequest) XXX_Size() int
func (*CreateRequest) XXX_Unmarshal ¶
func (m *CreateRequest) XXX_Unmarshal(b []byte) error
type CreateResponse ¶
type CreateResponse struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` }
func (*CreateResponse) Descriptor ¶
func (*CreateResponse) Descriptor() ([]byte, []int)
func (*CreateResponse) GetConfig ¶
func (m *CreateResponse) GetConfig() string
func (*CreateResponse) GetHeader ¶
func (m *CreateResponse) GetHeader() *Header
func (*CreateResponse) GetStatus ¶
func (m *CreateResponse) GetStatus() *Status
func (*CreateResponse) GetVersion ¶
func (m *CreateResponse) GetVersion() *Version
func (*CreateResponse) Marshal ¶
func (m *CreateResponse) Marshal() (dAtA []byte, err error)
func (*CreateResponse) MarshalToSizedBuffer ¶
func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) Reset ¶
func (m *CreateResponse) Reset()
func (*CreateResponse) Size ¶
func (m *CreateResponse) Size() (n int)
func (*CreateResponse) String ¶
func (m *CreateResponse) String() string
func (*CreateResponse) Unmarshal ¶
func (m *CreateResponse) Unmarshal(dAtA []byte) error
func (*CreateResponse) XXX_DiscardUnknown ¶
func (m *CreateResponse) XXX_DiscardUnknown()
func (*CreateResponse) XXX_Marshal ¶
func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateResponse) XXX_Merge ¶
func (m *CreateResponse) XXX_Merge(src proto.Message)
func (*CreateResponse) XXX_Size ¶
func (m *CreateResponse) XXX_Size() int
func (*CreateResponse) XXX_Unmarshal ¶
func (m *CreateResponse) XXX_Unmarshal(b []byte) error
type DeleteRequest ¶
type DeleteRequest struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Kind *ConfigKind `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` }
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetHeader ¶
func (m *DeleteRequest) GetHeader() *Header
func (*DeleteRequest) GetKind ¶
func (m *DeleteRequest) GetKind() *ConfigKind
func (*DeleteRequest) GetVersion ¶
func (m *DeleteRequest) GetVersion() *Version
func (*DeleteRequest) Marshal ¶
func (m *DeleteRequest) Marshal() (dAtA []byte, err error)
func (*DeleteRequest) MarshalToSizedBuffer ¶
func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) Size ¶
func (m *DeleteRequest) Size() (n int)
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
func (*DeleteRequest) Unmarshal ¶
func (m *DeleteRequest) Unmarshal(dAtA []byte) error
func (*DeleteRequest) XXX_DiscardUnknown ¶
func (m *DeleteRequest) XXX_DiscardUnknown()
func (*DeleteRequest) XXX_Marshal ¶
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRequest) XXX_Merge ¶
func (m *DeleteRequest) XXX_Merge(src proto.Message)
func (*DeleteRequest) XXX_Size ¶
func (m *DeleteRequest) XXX_Size() int
func (*DeleteRequest) XXX_Unmarshal ¶
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
type DeleteResponse ¶
type DeleteResponse struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` }
func (*DeleteResponse) Descriptor ¶
func (*DeleteResponse) Descriptor() ([]byte, []int)
func (*DeleteResponse) GetHeader ¶
func (m *DeleteResponse) GetHeader() *Header
func (*DeleteResponse) GetStatus ¶
func (m *DeleteResponse) GetStatus() *Status
func (*DeleteResponse) GetVersion ¶
func (m *DeleteResponse) GetVersion() *Version
func (*DeleteResponse) Marshal ¶
func (m *DeleteResponse) Marshal() (dAtA []byte, err error)
func (*DeleteResponse) MarshalToSizedBuffer ¶
func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) Reset ¶
func (m *DeleteResponse) Reset()
func (*DeleteResponse) Size ¶
func (m *DeleteResponse) Size() (n int)
func (*DeleteResponse) String ¶
func (m *DeleteResponse) String() string
func (*DeleteResponse) Unmarshal ¶
func (m *DeleteResponse) Unmarshal(dAtA []byte) error
func (*DeleteResponse) XXX_DiscardUnknown ¶
func (m *DeleteResponse) XXX_DiscardUnknown()
func (*DeleteResponse) XXX_Marshal ¶
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteResponse) XXX_Merge ¶
func (m *DeleteResponse) XXX_Merge(src proto.Message)
func (*DeleteResponse) XXX_Size ¶
func (m *DeleteResponse) XXX_Size() int
func (*DeleteResponse) XXX_Unmarshal ¶
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
type GetAllRequest ¶
type GetAllRequest struct {
Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
}
func (*GetAllRequest) Descriptor ¶
func (*GetAllRequest) Descriptor() ([]byte, []int)
func (*GetAllRequest) GetHeader ¶
func (m *GetAllRequest) GetHeader() *Header
func (*GetAllRequest) Marshal ¶
func (m *GetAllRequest) Marshal() (dAtA []byte, err error)
func (*GetAllRequest) MarshalToSizedBuffer ¶
func (m *GetAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAllRequest) ProtoMessage ¶
func (*GetAllRequest) ProtoMessage()
func (*GetAllRequest) Reset ¶
func (m *GetAllRequest) Reset()
func (*GetAllRequest) Size ¶
func (m *GetAllRequest) Size() (n int)
func (*GetAllRequest) String ¶
func (m *GetAllRequest) String() string
func (*GetAllRequest) Unmarshal ¶
func (m *GetAllRequest) Unmarshal(dAtA []byte) error
func (*GetAllRequest) XXX_DiscardUnknown ¶
func (m *GetAllRequest) XXX_DiscardUnknown()
func (*GetAllRequest) XXX_Marshal ¶
func (m *GetAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllRequest) XXX_Merge ¶
func (m *GetAllRequest) XXX_Merge(src proto.Message)
func (*GetAllRequest) XXX_Size ¶
func (m *GetAllRequest) XXX_Size() int
func (*GetAllRequest) XXX_Unmarshal ¶
func (m *GetAllRequest) XXX_Unmarshal(b []byte) error
type GetAllResponse ¶
type GetAllResponse struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` LocalConfigs []*LocalConfig `protobuf:"bytes,3,rep,name=local_configs,json=localConfigs,proto3" json:"local_configs,omitempty"` }
func (*GetAllResponse) Descriptor ¶
func (*GetAllResponse) Descriptor() ([]byte, []int)
func (*GetAllResponse) GetHeader ¶
func (m *GetAllResponse) GetHeader() *Header
func (*GetAllResponse) GetLocalConfigs ¶
func (m *GetAllResponse) GetLocalConfigs() []*LocalConfig
func (*GetAllResponse) GetStatus ¶
func (m *GetAllResponse) GetStatus() *Status
func (*GetAllResponse) Marshal ¶
func (m *GetAllResponse) Marshal() (dAtA []byte, err error)
func (*GetAllResponse) MarshalToSizedBuffer ¶
func (m *GetAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAllResponse) ProtoMessage ¶
func (*GetAllResponse) ProtoMessage()
func (*GetAllResponse) Reset ¶
func (m *GetAllResponse) Reset()
func (*GetAllResponse) Size ¶
func (m *GetAllResponse) Size() (n int)
func (*GetAllResponse) String ¶
func (m *GetAllResponse) String() string
func (*GetAllResponse) Unmarshal ¶
func (m *GetAllResponse) Unmarshal(dAtA []byte) error
func (*GetAllResponse) XXX_DiscardUnknown ¶
func (m *GetAllResponse) XXX_DiscardUnknown()
func (*GetAllResponse) XXX_Marshal ¶
func (m *GetAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllResponse) XXX_Merge ¶
func (m *GetAllResponse) XXX_Merge(src proto.Message)
func (*GetAllResponse) XXX_Size ¶
func (m *GetAllResponse) XXX_Size() int
func (*GetAllResponse) XXX_Unmarshal ¶
func (m *GetAllResponse) XXX_Unmarshal(b []byte) error
type GetRequest ¶
type GetRequest struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` ComponentId string `protobuf:"bytes,4,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` }
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetComponent ¶
func (m *GetRequest) GetComponent() string
func (*GetRequest) GetComponentId ¶
func (m *GetRequest) GetComponentId() string
func (*GetRequest) GetHeader ¶
func (m *GetRequest) GetHeader() *Header
func (*GetRequest) GetVersion ¶
func (m *GetRequest) GetVersion() *Version
func (*GetRequest) Marshal ¶
func (m *GetRequest) Marshal() (dAtA []byte, err error)
func (*GetRequest) MarshalToSizedBuffer ¶
func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) Size ¶
func (m *GetRequest) Size() (n int)
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) Unmarshal ¶
func (m *GetRequest) Unmarshal(dAtA []byte) error
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetResponse ¶
type GetResponse struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` }
func (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetConfig ¶
func (m *GetResponse) GetConfig() string
func (*GetResponse) GetHeader ¶
func (m *GetResponse) GetHeader() *Header
func (*GetResponse) GetStatus ¶
func (m *GetResponse) GetStatus() *Status
func (*GetResponse) GetVersion ¶
func (m *GetResponse) GetVersion() *Version
func (*GetResponse) Marshal ¶
func (m *GetResponse) Marshal() (dAtA []byte, err error)
func (*GetResponse) MarshalToSizedBuffer ¶
func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) Size ¶
func (m *GetResponse) Size() (n int)
func (*GetResponse) String ¶
func (m *GetResponse) String() string
func (*GetResponse) Unmarshal ¶
func (m *GetResponse) Unmarshal(dAtA []byte) error
func (*GetResponse) XXX_DiscardUnknown ¶
func (m *GetResponse) XXX_DiscardUnknown()
func (*GetResponse) XXX_Marshal ¶
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetResponse) XXX_Merge ¶
func (m *GetResponse) XXX_Merge(src proto.Message)
func (*GetResponse) XXX_Size ¶
func (m *GetResponse) XXX_Size() int
func (*GetResponse) XXX_Unmarshal ¶
func (m *GetResponse) XXX_Unmarshal(b []byte) error
type Global ¶
type Global struct {
Component string `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"`
}
func (*Global) Descriptor ¶
func (*Global) GetComponent ¶
func (*Global) MarshalToSizedBuffer ¶
func (*Global) ProtoMessage ¶
func (*Global) ProtoMessage()
func (*Global) XXX_DiscardUnknown ¶
func (m *Global) XXX_DiscardUnknown()
func (*Global) XXX_Marshal ¶
func (*Global) XXX_Unmarshal ¶
type Header ¶
type Header struct {
ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
}
func (*Header) Descriptor ¶
func (*Header) GetClusterId ¶
func (*Header) MarshalToSizedBuffer ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type Local ¶
type Local struct {
ComponentId string `protobuf:"bytes,1,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"`
}
func (*Local) Descriptor ¶
func (*Local) GetComponentId ¶
func (*Local) ProtoMessage ¶
func (*Local) ProtoMessage()
func (*Local) XXX_DiscardUnknown ¶
func (m *Local) XXX_DiscardUnknown()
func (*Local) XXX_Marshal ¶
func (*Local) XXX_Unmarshal ¶
type LocalConfig ¶
type LocalConfig struct { Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Component string `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"` ComponentId string `protobuf:"bytes,3,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` }
func (*LocalConfig) Descriptor ¶
func (*LocalConfig) Descriptor() ([]byte, []int)
func (*LocalConfig) GetComponent ¶
func (m *LocalConfig) GetComponent() string
func (*LocalConfig) GetComponentId ¶
func (m *LocalConfig) GetComponentId() string
func (*LocalConfig) GetConfig ¶
func (m *LocalConfig) GetConfig() string
func (*LocalConfig) GetVersion ¶
func (m *LocalConfig) GetVersion() *Version
func (*LocalConfig) Marshal ¶
func (m *LocalConfig) Marshal() (dAtA []byte, err error)
func (*LocalConfig) MarshalToSizedBuffer ¶
func (m *LocalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LocalConfig) ProtoMessage ¶
func (*LocalConfig) ProtoMessage()
func (*LocalConfig) Reset ¶
func (m *LocalConfig) Reset()
func (*LocalConfig) Size ¶
func (m *LocalConfig) Size() (n int)
func (*LocalConfig) String ¶
func (m *LocalConfig) String() string
func (*LocalConfig) Unmarshal ¶
func (m *LocalConfig) Unmarshal(dAtA []byte) error
func (*LocalConfig) XXX_DiscardUnknown ¶
func (m *LocalConfig) XXX_DiscardUnknown()
func (*LocalConfig) XXX_Marshal ¶
func (m *LocalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LocalConfig) XXX_Merge ¶
func (m *LocalConfig) XXX_Merge(src proto.Message)
func (*LocalConfig) XXX_Size ¶
func (m *LocalConfig) XXX_Size() int
func (*LocalConfig) XXX_Unmarshal ¶
func (m *LocalConfig) XXX_Unmarshal(b []byte) error
type Status ¶
type Status struct { Code StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=configpb.StatusCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` }
func (*Status) Descriptor ¶
func (*Status) GetCode ¶
func (m *Status) GetCode() StatusCode
func (*Status) GetMessage ¶
func (*Status) MarshalToSizedBuffer ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) XXX_DiscardUnknown ¶
func (m *Status) XXX_DiscardUnknown()
func (*Status) XXX_Marshal ¶
func (*Status) XXX_Unmarshal ¶
type StatusCode ¶
type StatusCode int32
const ( StatusCode_UNKNOWN StatusCode = 0 StatusCode_OK StatusCode = 1 StatusCode_WRONG_VERSION StatusCode = 2 StatusCode_NOT_CHANGE StatusCode = 3 StatusCode_COMPONENT_NOT_FOUND StatusCode = 4 StatusCode_COMPONENT_ID_NOT_FOUND StatusCode = 5 )
func (StatusCode) EnumDescriptor ¶
func (StatusCode) EnumDescriptor() ([]byte, []int)
func (StatusCode) String ¶
func (x StatusCode) String() string
type UnimplementedConfigServer ¶
type UnimplementedConfigServer struct { }
UnimplementedConfigServer can be embedded to have forward compatible implementations.
func (*UnimplementedConfigServer) Create ¶
func (*UnimplementedConfigServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error)
func (*UnimplementedConfigServer) Delete ¶
func (*UnimplementedConfigServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
func (*UnimplementedConfigServer) Get ¶
func (*UnimplementedConfigServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error)
func (*UnimplementedConfigServer) GetAll ¶
func (*UnimplementedConfigServer) GetAll(ctx context.Context, req *GetAllRequest) (*GetAllResponse, error)
func (*UnimplementedConfigServer) Update ¶
func (*UnimplementedConfigServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
type UpdateRequest ¶
type UpdateRequest struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Kind *ConfigKind `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` Entries []*ConfigEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries,omitempty"` }
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) GetEntries ¶
func (m *UpdateRequest) GetEntries() []*ConfigEntry
func (*UpdateRequest) GetHeader ¶
func (m *UpdateRequest) GetHeader() *Header
func (*UpdateRequest) GetKind ¶
func (m *UpdateRequest) GetKind() *ConfigKind
func (*UpdateRequest) GetVersion ¶
func (m *UpdateRequest) GetVersion() *Version
func (*UpdateRequest) Marshal ¶
func (m *UpdateRequest) Marshal() (dAtA []byte, err error)
func (*UpdateRequest) MarshalToSizedBuffer ¶
func (m *UpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) Size ¶
func (m *UpdateRequest) Size() (n int)
func (*UpdateRequest) String ¶
func (m *UpdateRequest) String() string
func (*UpdateRequest) Unmarshal ¶
func (m *UpdateRequest) Unmarshal(dAtA []byte) error
func (*UpdateRequest) XXX_DiscardUnknown ¶
func (m *UpdateRequest) XXX_DiscardUnknown()
func (*UpdateRequest) XXX_Marshal ¶
func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateRequest) XXX_Merge ¶
func (m *UpdateRequest) XXX_Merge(src proto.Message)
func (*UpdateRequest) XXX_Size ¶
func (m *UpdateRequest) XXX_Size() int
func (*UpdateRequest) XXX_Unmarshal ¶
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
type UpdateResponse ¶
type UpdateResponse struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` }
func (*UpdateResponse) Descriptor ¶
func (*UpdateResponse) Descriptor() ([]byte, []int)
func (*UpdateResponse) GetConfig ¶
func (m *UpdateResponse) GetConfig() string
func (*UpdateResponse) GetHeader ¶
func (m *UpdateResponse) GetHeader() *Header
func (*UpdateResponse) GetStatus ¶
func (m *UpdateResponse) GetStatus() *Status
func (*UpdateResponse) GetVersion ¶
func (m *UpdateResponse) GetVersion() *Version
func (*UpdateResponse) Marshal ¶
func (m *UpdateResponse) Marshal() (dAtA []byte, err error)
func (*UpdateResponse) MarshalToSizedBuffer ¶
func (m *UpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) Reset ¶
func (m *UpdateResponse) Reset()
func (*UpdateResponse) Size ¶
func (m *UpdateResponse) Size() (n int)
func (*UpdateResponse) String ¶
func (m *UpdateResponse) String() string
func (*UpdateResponse) Unmarshal ¶
func (m *UpdateResponse) Unmarshal(dAtA []byte) error
func (*UpdateResponse) XXX_DiscardUnknown ¶
func (m *UpdateResponse) XXX_DiscardUnknown()
func (*UpdateResponse) XXX_Marshal ¶
func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateResponse) XXX_Merge ¶
func (m *UpdateResponse) XXX_Merge(src proto.Message)
func (*UpdateResponse) XXX_Size ¶
func (m *UpdateResponse) XXX_Size() int
func (*UpdateResponse) XXX_Unmarshal ¶
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
type Version ¶
type Version struct { Local uint64 `protobuf:"varint,1,opt,name=local,proto3" json:"local,omitempty"` Global uint64 `protobuf:"varint,2,opt,name=global,proto3" json:"global,omitempty"` }
The version is used to tell the configuration which can be shared or not apart. Global version represents the version of these configuration which can be shared, each kind of component only have one. For local version, every component will have one to represent the version of these configuration which cannot be shared.
func (*Version) Descriptor ¶
func (*Version) MarshalToSizedBuffer ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) XXX_DiscardUnknown ¶
func (m *Version) XXX_DiscardUnknown()