configpb

package
v0.0.0-...-e8eeb94 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 5

Documentation

Overview

Package configpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthConfigpb        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConfigpb          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConfigpb = fmt.Errorf("proto: unexpected end of group")
)
View Source
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",
}
View Source
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

func RegisterConfigHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

func (m *ConfigEntry) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *ConfigKind) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *ConfigKind_Local) MarshalTo(dAtA []byte) (int, error)

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

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

func (m *CreateRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *CreateResponse) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GetAllRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GetAllResponse) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GetRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GetResponse) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Global) GetComponent

func (m *Global) GetComponent() string

func (*Global) Marshal

func (m *Global) Marshal() (dAtA []byte, err error)

func (*Global) MarshalTo

func (m *Global) MarshalTo(dAtA []byte) (int, error)

func (*Global) MarshalToSizedBuffer

func (m *Global) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Global) ProtoMessage

func (*Global) ProtoMessage()

func (*Global) Reset

func (m *Global) Reset()

func (*Global) Size

func (m *Global) Size() (n int)

func (*Global) String

func (m *Global) String() string

func (*Global) Unmarshal

func (m *Global) Unmarshal(dAtA []byte) error

func (*Global) XXX_DiscardUnknown

func (m *Global) XXX_DiscardUnknown()

func (*Global) XXX_Marshal

func (m *Global) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Global) XXX_Merge

func (m *Global) XXX_Merge(src proto.Message)

func (*Global) XXX_Size

func (m *Global) XXX_Size() int

func (*Global) XXX_Unmarshal

func (m *Global) XXX_Unmarshal(b []byte) error
type Header struct {
	ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
}

func (*Header) Descriptor

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

func (*Header) GetClusterId

func (m *Header) GetClusterId() uint64

func (*Header) Marshal

func (m *Header) Marshal() (dAtA []byte, err error)

func (*Header) MarshalTo

func (m *Header) MarshalTo(dAtA []byte) (int, error)

func (*Header) MarshalToSizedBuffer

func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) Size

func (m *Header) Size() (n int)

func (*Header) String

func (m *Header) String() string

func (*Header) Unmarshal

func (m *Header) Unmarshal(dAtA []byte) error

func (*Header) XXX_DiscardUnknown

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal

func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Header) XXX_Merge

func (m *Header) XXX_Merge(src proto.Message)

func (*Header) XXX_Size

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal

func (m *Header) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Local) GetComponentId

func (m *Local) GetComponentId() string

func (*Local) Marshal

func (m *Local) Marshal() (dAtA []byte, err error)

func (*Local) MarshalTo

func (m *Local) MarshalTo(dAtA []byte) (int, error)

func (*Local) MarshalToSizedBuffer

func (m *Local) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Local) ProtoMessage

func (*Local) ProtoMessage()

func (*Local) Reset

func (m *Local) Reset()

func (*Local) Size

func (m *Local) Size() (n int)

func (*Local) String

func (m *Local) String() string

func (*Local) Unmarshal

func (m *Local) Unmarshal(dAtA []byte) error

func (*Local) XXX_DiscardUnknown

func (m *Local) XXX_DiscardUnknown()

func (*Local) XXX_Marshal

func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Local) XXX_Merge

func (m *Local) XXX_Merge(src proto.Message)

func (*Local) XXX_Size

func (m *Local) XXX_Size() int

func (*Local) XXX_Unmarshal

func (m *Local) XXX_Unmarshal(b []byte) error

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

func (m *LocalConfig) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Status) GetCode

func (m *Status) GetCode() StatusCode

func (*Status) GetMessage

func (m *Status) GetMessage() string

func (*Status) Marshal

func (m *Status) Marshal() (dAtA []byte, err error)

func (*Status) MarshalTo

func (m *Status) MarshalTo(dAtA []byte) (int, error)

func (*Status) MarshalToSizedBuffer

func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) Size

func (m *Status) Size() (n int)

func (*Status) String

func (m *Status) String() string

func (*Status) Unmarshal

func (m *Status) Unmarshal(dAtA []byte) error

func (*Status) XXX_DiscardUnknown

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal

func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Status) XXX_Merge

func (m *Status) XXX_Merge(src proto.Message)

func (*Status) XXX_Size

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal

func (m *Status) XXX_Unmarshal(b []byte) error

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

func (*UnimplementedConfigServer) Get

func (*UnimplementedConfigServer) GetAll

func (*UnimplementedConfigServer) Update

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

func (m *UpdateRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *UpdateResponse) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Version) GetGlobal

func (m *Version) GetGlobal() uint64

func (*Version) GetLocal

func (m *Version) GetLocal() uint64

func (*Version) Marshal

func (m *Version) Marshal() (dAtA []byte, err error)

func (*Version) MarshalTo

func (m *Version) MarshalTo(dAtA []byte) (int, error)

func (*Version) MarshalToSizedBuffer

func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) Reset

func (m *Version) Reset()

func (*Version) Size

func (m *Version) Size() (n int)

func (*Version) String

func (m *Version) String() string

func (*Version) Unmarshal

func (m *Version) Unmarshal(dAtA []byte) error

func (*Version) XXX_DiscardUnknown

func (m *Version) XXX_DiscardUnknown()

func (*Version) XXX_Marshal

func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Version) XXX_Merge

func (m *Version) XXX_Merge(src proto.Message)

func (*Version) XXX_Size

func (m *Version) XXX_Size() int

func (*Version) XXX_Unmarshal

func (m *Version) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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