Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 2023 Changes in this version + var ErrIntOverflowConfigpb = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthConfigpb = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupConfigpb = fmt.Errorf("proto: unexpected end of group") + var StatusCode_name = map[int32]string + var StatusCode_value = map[string]int32 + 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 interface + Create func(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + Delete func(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) + Get func(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) + GetAll func(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) + Update func(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) + func NewConfigClient(cc *grpc.ClientConn) ConfigClient + type ConfigEntry struct + Name string + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ConfigEntry) Descriptor() ([]byte, []int) + func (*ConfigEntry) ProtoMessage() + 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 (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 struct + Kind isConfigKind_Kind + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ConfigKind) Descriptor() ([]byte, []int) + func (*ConfigKind) ProtoMessage() + func (*ConfigKind) XXX_OneofWrappers() []interface{} + 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 (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 (m *ConfigKind) XXX_Size() int + func (m *ConfigKind) XXX_Unmarshal(b []byte) error + type ConfigKind_Global struct + Global *Global + func (m *ConfigKind_Global) MarshalTo(dAtA []byte) (int, error) + func (m *ConfigKind_Global) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ConfigKind_Global) Size() (n int) + type ConfigKind_Local struct + Local *Local + func (m *ConfigKind_Local) MarshalTo(dAtA []byte) (int, error) + func (m *ConfigKind_Local) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ConfigKind_Local) Size() (n int) + type ConfigServer interface + Create func(context.Context, *CreateRequest) (*CreateResponse, error) + Delete func(context.Context, *DeleteRequest) (*DeleteResponse, error) + Get func(context.Context, *GetRequest) (*GetResponse, error) + GetAll func(context.Context, *GetAllRequest) (*GetAllResponse, error) + Update func(context.Context, *UpdateRequest) (*UpdateResponse, error) + type CreateRequest struct + Component string + ComponentId string + Config string + Header *Header + Version *Version + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CreateRequest) Descriptor() ([]byte, []int) + func (*CreateRequest) ProtoMessage() + 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 (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 struct + Config string + Header *Header + Status *Status + Version *Version + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CreateResponse) Descriptor() ([]byte, []int) + func (*CreateResponse) ProtoMessage() + 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 (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 struct + Header *Header + Kind *ConfigKind + Version *Version + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DeleteRequest) Descriptor() ([]byte, []int) + func (*DeleteRequest) ProtoMessage() + 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 (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 struct + Header *Header + Status *Status + Version *Version + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DeleteResponse) Descriptor() ([]byte, []int) + func (*DeleteResponse) ProtoMessage() + 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 (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 struct + Header *Header + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetAllRequest) Descriptor() ([]byte, []int) + func (*GetAllRequest) ProtoMessage() + 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 (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 struct + Header *Header + LocalConfigs []*LocalConfig + Status *Status + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetAllResponse) Descriptor() ([]byte, []int) + func (*GetAllResponse) ProtoMessage() + 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 (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 struct + Component string + ComponentId string + Header *Header + Version *Version + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetRequest) Descriptor() ([]byte, []int) + func (*GetRequest) ProtoMessage() + 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 (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 struct + Config string + Header *Header + Status *Status + Version *Version + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetResponse) Descriptor() ([]byte, []int) + func (*GetResponse) ProtoMessage() + 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 (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 struct + Component string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Global) Descriptor() ([]byte, []int) + func (*Global) ProtoMessage() + 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 (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 struct + ClusterId uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Header) Descriptor() ([]byte, []int) + func (*Header) ProtoMessage() + 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 (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 struct + ComponentId string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Local) Descriptor() ([]byte, []int) + func (*Local) ProtoMessage() + 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 (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 struct + Component string + ComponentId string + Config string + Version *Version + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*LocalConfig) Descriptor() ([]byte, []int) + func (*LocalConfig) ProtoMessage() + 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 (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 struct + Code StatusCode + Message string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Status) Descriptor() ([]byte, []int) + func (*Status) ProtoMessage() + 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 (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 int32 + const StatusCode_COMPONENT_ID_NOT_FOUND + const StatusCode_COMPONENT_NOT_FOUND + const StatusCode_NOT_CHANGE + const StatusCode_OK + const StatusCode_UNKNOWN + const StatusCode_WRONG_VERSION + func (StatusCode) EnumDescriptor() ([]byte, []int) + func (x StatusCode) String() string + type UnimplementedConfigServer struct + 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 struct + Entries []*ConfigEntry + Header *Header + Kind *ConfigKind + Version *Version + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UpdateRequest) Descriptor() ([]byte, []int) + func (*UpdateRequest) ProtoMessage() + 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 (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 struct + Config string + Header *Header + Status *Status + Version *Version + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UpdateResponse) Descriptor() ([]byte, []int) + func (*UpdateResponse) ProtoMessage() + 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 (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 struct + Global uint64 + Local uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Version) Descriptor() ([]byte, []int) + func (*Version) ProtoMessage() + 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 (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