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

package go_micro_store

import "github.com/micro/go-micro/store/service/proto"

Index

Package Files

store.pb.go store.pb.micro.go

func RegisterStoreHandler Uses

func RegisterStoreHandler(s server.Server, hdlr StoreHandler, opts ...server.HandlerOption) error

type DeleteRequest Uses

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

func (*DeleteRequest) Descriptor Uses

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

func (*DeleteRequest) GetKey Uses

func (m *DeleteRequest) GetKey() string

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 {
    Records              []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*ListResponse) Descriptor Uses

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

func (*ListResponse) GetRecords Uses

func (m *ListResponse) GetRecords() []*Record

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 ReadOptions Uses

type ReadOptions struct {
    Prefix               bool     `protobuf:"varint,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ReadOptions) Descriptor Uses

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

func (*ReadOptions) GetPrefix Uses

func (m *ReadOptions) GetPrefix() bool

func (*ReadOptions) ProtoMessage Uses

func (*ReadOptions) ProtoMessage()

func (*ReadOptions) Reset Uses

func (m *ReadOptions) Reset()

func (*ReadOptions) String Uses

func (m *ReadOptions) String() string

func (*ReadOptions) XXX_DiscardUnknown Uses

func (m *ReadOptions) XXX_DiscardUnknown()

func (*ReadOptions) XXX_Marshal Uses

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

func (*ReadOptions) XXX_Merge Uses

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

func (*ReadOptions) XXX_Size Uses

func (m *ReadOptions) XXX_Size() int

func (*ReadOptions) XXX_Unmarshal Uses

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

type ReadRequest Uses

type ReadRequest struct {
    Key                  string       `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    Options              *ReadOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,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) GetOptions Uses

func (m *ReadRequest) GetOptions() *ReadOptions

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 {
    Records              []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*ReadResponse) Descriptor Uses

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

func (*ReadResponse) GetRecords Uses

func (m *ReadResponse) GetRecords() []*Record

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 Record Uses

type Record struct {
    // key of the record
    Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    // value in the record
    Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    // timestamp in unix seconds
    Expiry               int64    `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Record) Descriptor Uses

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

func (*Record) GetExpiry Uses

func (m *Record) GetExpiry() int64

func (*Record) GetKey Uses

func (m *Record) GetKey() string

func (*Record) GetValue Uses

func (m *Record) GetValue() []byte

func (*Record) ProtoMessage Uses

func (*Record) ProtoMessage()

func (*Record) Reset Uses

func (m *Record) Reset()

func (*Record) String Uses

func (m *Record) String() string

func (*Record) XXX_DiscardUnknown Uses

func (m *Record) XXX_DiscardUnknown()

func (*Record) XXX_Marshal Uses

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

func (*Record) XXX_Merge Uses

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

func (*Record) XXX_Size Uses

func (m *Record) XXX_Size() int

func (*Record) XXX_Unmarshal Uses

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

type StoreHandler Uses

type StoreHandler interface {
    List(context.Context, *ListRequest, Store_ListStream) error
    Read(context.Context, *ReadRequest, *ReadResponse) error
    Write(context.Context, *WriteRequest, *WriteResponse) error
    Delete(context.Context, *DeleteRequest, *DeleteResponse) error
}

type StoreService Uses

type StoreService interface {
    List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (Store_ListService, error)
    Read(ctx context.Context, in *ReadRequest, opts ...client.CallOption) (*ReadResponse, error)
    Write(ctx context.Context, in *WriteRequest, opts ...client.CallOption) (*WriteResponse, error)
    Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error)
}

func NewStoreService Uses

func NewStoreService(name string, c client.Client) StoreService

type Store_ListService Uses

type Store_ListService interface {
    SendMsg(interface{}) error
    RecvMsg(interface{}) error
    Close() error
    Recv() (*ListResponse, error)
}

type Store_ListStream Uses

type Store_ListStream interface {
    SendMsg(interface{}) error
    RecvMsg(interface{}) error
    Close() error
    Send(*ListResponse) error
}

type WriteRequest Uses

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

func (*WriteRequest) Descriptor Uses

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

func (*WriteRequest) GetRecord Uses

func (m *WriteRequest) GetRecord() *Record

func (*WriteRequest) ProtoMessage Uses

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) Reset Uses

func (m *WriteRequest) Reset()

func (*WriteRequest) String Uses

func (m *WriteRequest) String() string

func (*WriteRequest) XXX_DiscardUnknown Uses

func (m *WriteRequest) XXX_DiscardUnknown()

func (*WriteRequest) XXX_Marshal Uses

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

func (*WriteRequest) XXX_Merge Uses

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

func (*WriteRequest) XXX_Size Uses

func (m *WriteRequest) XXX_Size() int

func (*WriteRequest) XXX_Unmarshal Uses

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

type WriteResponse Uses

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

func (*WriteResponse) Descriptor Uses

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

func (*WriteResponse) ProtoMessage Uses

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) Reset Uses

func (m *WriteResponse) Reset()

func (*WriteResponse) String Uses

func (m *WriteResponse) String() string

func (*WriteResponse) XXX_DiscardUnknown Uses

func (m *WriteResponse) XXX_DiscardUnknown()

func (*WriteResponse) XXX_Marshal Uses

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

func (*WriteResponse) XXX_Merge Uses

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

func (*WriteResponse) XXX_Size Uses

func (m *WriteResponse) XXX_Size() int

func (*WriteResponse) XXX_Unmarshal Uses

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

Package go_micro_store imports 6 packages (graph) and is imported by 13 packages. Updated 2020-02-22. Refresh now. Tools for package owners.