go-micro: github.com/micro/go-micro/config/source/service/proto Index | Files

package service

import "github.com/micro/go-micro/config/source/service/proto"

Index

Package Files

service.pb.go service.pb.micro.go

func RegisterConfigHandler Uses

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

type Change Uses

type Change struct {
    Key                  string     `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    Path                 string     `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    ChangeSet            *ChangeSet `protobuf:"bytes,3,opt,name=changeSet,proto3" json:"changeSet,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

func (*Change) Descriptor Uses

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

func (*Change) GetChangeSet Uses

func (m *Change) GetChangeSet() *ChangeSet

func (*Change) GetKey Uses

func (m *Change) GetKey() string

func (*Change) GetPath Uses

func (m *Change) GetPath() string

func (*Change) ProtoMessage Uses

func (*Change) ProtoMessage()

func (*Change) Reset Uses

func (m *Change) Reset()

func (*Change) String Uses

func (m *Change) String() string

func (*Change) XXX_DiscardUnknown Uses

func (m *Change) XXX_DiscardUnknown()

func (*Change) XXX_Marshal Uses

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

func (*Change) XXX_Merge Uses

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

func (*Change) XXX_Size Uses

func (m *Change) XXX_Size() int

func (*Change) XXX_Unmarshal Uses

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

type ChangeSet Uses

type ChangeSet struct {
    Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    Checksum             string   `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"`
    Format               string   `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"`
    Source               string   `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
    Timestamp            int64    `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ChangeSet) Descriptor Uses

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

func (*ChangeSet) GetChecksum Uses

func (m *ChangeSet) GetChecksum() string

func (*ChangeSet) GetData Uses

func (m *ChangeSet) GetData() []byte

func (*ChangeSet) GetFormat Uses

func (m *ChangeSet) GetFormat() string

func (*ChangeSet) GetSource Uses

func (m *ChangeSet) GetSource() string

func (*ChangeSet) GetTimestamp Uses

func (m *ChangeSet) GetTimestamp() int64

func (*ChangeSet) ProtoMessage Uses

func (*ChangeSet) ProtoMessage()

func (*ChangeSet) Reset Uses

func (m *ChangeSet) Reset()

func (*ChangeSet) String Uses

func (m *ChangeSet) String() string

func (*ChangeSet) XXX_DiscardUnknown Uses

func (m *ChangeSet) XXX_DiscardUnknown()

func (*ChangeSet) XXX_Marshal Uses

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

func (*ChangeSet) XXX_Merge Uses

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

func (*ChangeSet) XXX_Size Uses

func (m *ChangeSet) XXX_Size() int

func (*ChangeSet) XXX_Unmarshal Uses

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

type ConfigHandler Uses

type ConfigHandler interface {
    Create(context.Context, *CreateRequest, *CreateResponse) error
    Update(context.Context, *UpdateRequest, *UpdateResponse) error
    Delete(context.Context, *DeleteRequest, *DeleteResponse) error
    List(context.Context, *ListRequest, *ListResponse) error
    Read(context.Context, *ReadRequest, *ReadResponse) error
    Watch(context.Context, *WatchRequest, Config_WatchStream) error
}

type ConfigService Uses

type ConfigService interface {
    Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error)
    Update(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*UpdateResponse, error)
    Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error)
    List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error)
    Read(ctx context.Context, in *ReadRequest, opts ...client.CallOption) (*ReadResponse, error)
    Watch(ctx context.Context, in *WatchRequest, opts ...client.CallOption) (Config_WatchService, error)
}

func NewConfigService Uses

func NewConfigService(name string, c client.Client) ConfigService

type Config_WatchService Uses

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

type Config_WatchStream Uses

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

type CreateRequest Uses

type CreateRequest struct {
    Change               *Change  `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CreateRequest) Descriptor Uses

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

func (*CreateRequest) GetChange Uses

func (m *CreateRequest) GetChange() *Change

func (*CreateRequest) ProtoMessage Uses

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset Uses

func (m *CreateRequest) Reset()

func (*CreateRequest) String Uses

func (m *CreateRequest) String() string

func (*CreateRequest) XXX_DiscardUnknown Uses

func (m *CreateRequest) XXX_DiscardUnknown()

func (*CreateRequest) XXX_Marshal Uses

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

func (*CreateRequest) XXX_Merge Uses

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

func (*CreateRequest) XXX_Size Uses

func (m *CreateRequest) XXX_Size() int

func (*CreateRequest) XXX_Unmarshal Uses

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

type CreateResponse Uses

type CreateResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CreateResponse) Descriptor Uses

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

func (*CreateResponse) ProtoMessage Uses

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) Reset Uses

func (m *CreateResponse) Reset()

func (*CreateResponse) String Uses

func (m *CreateResponse) String() string

func (*CreateResponse) XXX_DiscardUnknown Uses

func (m *CreateResponse) XXX_DiscardUnknown()

func (*CreateResponse) XXX_Marshal Uses

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

func (*CreateResponse) XXX_Merge Uses

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

func (*CreateResponse) XXX_Size Uses

func (m *CreateResponse) XXX_Size() int

func (*CreateResponse) XXX_Unmarshal Uses

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

type DeleteRequest Uses

type DeleteRequest struct {
    Change               *Change  `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DeleteRequest) Descriptor Uses

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

func (*DeleteRequest) GetChange Uses

func (m *DeleteRequest) GetChange() *Change

func (*DeleteRequest) ProtoMessage Uses

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset Uses

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String Uses

func (m *DeleteRequest) String() string

func (*DeleteRequest) XXX_DiscardUnknown Uses

func (m *DeleteRequest) XXX_DiscardUnknown()

func (*DeleteRequest) XXX_Marshal Uses

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

func (*DeleteRequest) XXX_Merge Uses

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

func (*DeleteRequest) XXX_Size Uses

func (m *DeleteRequest) XXX_Size() int

func (*DeleteRequest) XXX_Unmarshal Uses

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

type DeleteResponse Uses

type DeleteResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DeleteResponse) Descriptor Uses

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

func (*DeleteResponse) ProtoMessage Uses

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) Reset Uses

func (m *DeleteResponse) Reset()

func (*DeleteResponse) String Uses

func (m *DeleteResponse) String() string

func (*DeleteResponse) XXX_DiscardUnknown Uses

func (m *DeleteResponse) XXX_DiscardUnknown()

func (*DeleteResponse) XXX_Marshal Uses

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

func (*DeleteResponse) XXX_Merge Uses

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

func (*DeleteResponse) XXX_Size Uses

func (m *DeleteResponse) XXX_Size() int

func (*DeleteResponse) XXX_Unmarshal Uses

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

type ListRequest Uses

type ListRequest struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ListRequest) Descriptor Uses

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

func (*ListRequest) ProtoMessage Uses

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset Uses

func (m *ListRequest) Reset()

func (*ListRequest) String Uses

func (m *ListRequest) String() string

func (*ListRequest) XXX_DiscardUnknown Uses

func (m *ListRequest) XXX_DiscardUnknown()

func (*ListRequest) XXX_Marshal Uses

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

func (*ListRequest) XXX_Merge Uses

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

func (*ListRequest) XXX_Size Uses

func (m *ListRequest) XXX_Size() int

func (*ListRequest) XXX_Unmarshal Uses

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

type ListResponse Uses

type ListResponse struct {
    Values               []*Change `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*ListResponse) Descriptor Uses

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

func (*ListResponse) GetValues Uses

func (m *ListResponse) GetValues() []*Change

func (*ListResponse) ProtoMessage Uses

func (*ListResponse) ProtoMessage()

func (*ListResponse) Reset Uses

func (m *ListResponse) Reset()

func (*ListResponse) String Uses

func (m *ListResponse) String() string

func (*ListResponse) XXX_DiscardUnknown Uses

func (m *ListResponse) XXX_DiscardUnknown()

func (*ListResponse) XXX_Marshal Uses

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

func (*ListResponse) XXX_Merge Uses

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

func (*ListResponse) XXX_Size Uses

func (m *ListResponse) XXX_Size() int

func (*ListResponse) XXX_Unmarshal Uses

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

type ReadRequest Uses

type ReadRequest struct {
    Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    Path                 string   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ReadRequest) Descriptor Uses

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

func (*ReadRequest) GetKey Uses

func (m *ReadRequest) GetKey() string

func (*ReadRequest) GetPath Uses

func (m *ReadRequest) GetPath() string

func (*ReadRequest) ProtoMessage Uses

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) Reset Uses

func (m *ReadRequest) Reset()

func (*ReadRequest) String Uses

func (m *ReadRequest) String() string

func (*ReadRequest) XXX_DiscardUnknown Uses

func (m *ReadRequest) XXX_DiscardUnknown()

func (*ReadRequest) XXX_Marshal Uses

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

func (*ReadRequest) XXX_Merge Uses

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

func (*ReadRequest) XXX_Size Uses

func (m *ReadRequest) XXX_Size() int

func (*ReadRequest) XXX_Unmarshal Uses

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

type ReadResponse Uses

type ReadResponse struct {
    Change               *Change  `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ReadResponse) Descriptor Uses

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

func (*ReadResponse) GetChange Uses

func (m *ReadResponse) GetChange() *Change

func (*ReadResponse) ProtoMessage Uses

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) Reset Uses

func (m *ReadResponse) Reset()

func (*ReadResponse) String Uses

func (m *ReadResponse) String() string

func (*ReadResponse) XXX_DiscardUnknown Uses

func (m *ReadResponse) XXX_DiscardUnknown()

func (*ReadResponse) XXX_Marshal Uses

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

func (*ReadResponse) XXX_Merge Uses

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

func (*ReadResponse) XXX_Size Uses

func (m *ReadResponse) XXX_Size() int

func (*ReadResponse) XXX_Unmarshal Uses

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

type UpdateRequest Uses

type UpdateRequest struct {
    Change               *Change  `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*UpdateRequest) Descriptor Uses

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

func (*UpdateRequest) GetChange Uses

func (m *UpdateRequest) GetChange() *Change

func (*UpdateRequest) ProtoMessage Uses

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset Uses

func (m *UpdateRequest) Reset()

func (*UpdateRequest) String Uses

func (m *UpdateRequest) String() string

func (*UpdateRequest) XXX_DiscardUnknown Uses

func (m *UpdateRequest) XXX_DiscardUnknown()

func (*UpdateRequest) XXX_Marshal Uses

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

func (*UpdateRequest) XXX_Merge Uses

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

func (*UpdateRequest) XXX_Size Uses

func (m *UpdateRequest) XXX_Size() int

func (*UpdateRequest) XXX_Unmarshal Uses

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

type UpdateResponse Uses

type UpdateResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*UpdateResponse) Descriptor Uses

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

func (*UpdateResponse) ProtoMessage Uses

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) Reset Uses

func (m *UpdateResponse) Reset()

func (*UpdateResponse) String Uses

func (m *UpdateResponse) String() string

func (*UpdateResponse) XXX_DiscardUnknown Uses

func (m *UpdateResponse) XXX_DiscardUnknown()

func (*UpdateResponse) XXX_Marshal Uses

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

func (*UpdateResponse) XXX_Merge Uses

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

func (*UpdateResponse) XXX_Size Uses

func (m *UpdateResponse) XXX_Size() int

func (*UpdateResponse) XXX_Unmarshal Uses

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

type WatchRequest Uses

type WatchRequest struct {
    Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    Path                 string   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*WatchRequest) Descriptor Uses

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

func (*WatchRequest) GetKey Uses

func (m *WatchRequest) GetKey() string

func (*WatchRequest) GetPath Uses

func (m *WatchRequest) GetPath() string

func (*WatchRequest) ProtoMessage Uses

func (*WatchRequest) ProtoMessage()

func (*WatchRequest) Reset Uses

func (m *WatchRequest) Reset()

func (*WatchRequest) String Uses

func (m *WatchRequest) String() string

func (*WatchRequest) XXX_DiscardUnknown Uses

func (m *WatchRequest) XXX_DiscardUnknown()

func (*WatchRequest) XXX_Marshal Uses

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

func (*WatchRequest) XXX_Merge Uses

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

func (*WatchRequest) XXX_Size Uses

func (m *WatchRequest) XXX_Size() int

func (*WatchRequest) XXX_Unmarshal Uses

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

type WatchResponse Uses

type WatchResponse struct {
    Key                  string     `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    ChangeSet            *ChangeSet `protobuf:"bytes,2,opt,name=changeSet,proto3" json:"changeSet,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

func (*WatchResponse) Descriptor Uses

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

func (*WatchResponse) GetChangeSet Uses

func (m *WatchResponse) GetChangeSet() *ChangeSet

func (*WatchResponse) GetKey Uses

func (m *WatchResponse) GetKey() string

func (*WatchResponse) ProtoMessage Uses

func (*WatchResponse) ProtoMessage()

func (*WatchResponse) Reset Uses

func (m *WatchResponse) Reset()

func (*WatchResponse) String Uses

func (m *WatchResponse) String() string

func (*WatchResponse) XXX_DiscardUnknown Uses

func (m *WatchResponse) XXX_DiscardUnknown()

func (*WatchResponse) XXX_Marshal Uses

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

func (*WatchResponse) XXX_Merge Uses

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

func (*WatchResponse) XXX_Size Uses

func (m *WatchResponse) XXX_Size() int

func (*WatchResponse) XXX_Unmarshal Uses

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

Package service imports 6 packages (graph) and is imported by 1 packages. Updated 2020-01-31. Refresh now. Tools for package owners.