Documentation ¶
Overview ¶
Package go_micro_srv_dbservice is a generated protocol buffer package.
It is generated from these files:
example.proto
It has these top-level messages:
Preference PreferenceRequest PreferenceResponse PreferencesListRequest PreferencesListResponse
Index ¶
- func RegisterPreferencesHandler(s server.Server, hdlr PreferencesHandler, opts ...server.HandlerOption)
- type Preference
- func (*Preference) Descriptor() ([]byte, []int)
- func (m *Preference) GetName() string
- func (m *Preference) GetUser() int32
- func (m *Preference) GetValue() string
- func (*Preference) ProtoMessage()
- func (m *Preference) Reset()
- func (m *Preference) String() string
- func (m *Preference) XXX_DiscardUnknown()
- func (m *Preference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Preference) XXX_Merge(src proto.Message)
- func (m *Preference) XXX_Size() int
- func (m *Preference) XXX_Unmarshal(b []byte) error
- type PreferenceRequest
- func (*PreferenceRequest) Descriptor() ([]byte, []int)
- func (m *PreferenceRequest) GetUser() int32
- func (*PreferenceRequest) ProtoMessage()
- func (m *PreferenceRequest) Reset()
- func (m *PreferenceRequest) String() string
- func (m *PreferenceRequest) XXX_DiscardUnknown()
- func (m *PreferenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PreferenceRequest) XXX_Merge(src proto.Message)
- func (m *PreferenceRequest) XXX_Size() int
- func (m *PreferenceRequest) XXX_Unmarshal(b []byte) error
- type PreferenceResponse
- func (*PreferenceResponse) Descriptor() ([]byte, []int)
- func (m *PreferenceResponse) GetPrefer() *Preference
- func (m *PreferenceResponse) GetResultCode() int32
- func (*PreferenceResponse) ProtoMessage()
- func (m *PreferenceResponse) Reset()
- func (m *PreferenceResponse) String() string
- func (m *PreferenceResponse) XXX_DiscardUnknown()
- func (m *PreferenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PreferenceResponse) XXX_Merge(src proto.Message)
- func (m *PreferenceResponse) XXX_Size() int
- func (m *PreferenceResponse) XXX_Unmarshal(b []byte) error
- type PreferencesHandler
- type PreferencesListRequest
- func (*PreferencesListRequest) Descriptor() ([]byte, []int)
- func (m *PreferencesListRequest) GetIndex() int32
- func (m *PreferencesListRequest) GetLimit() int32
- func (*PreferencesListRequest) ProtoMessage()
- func (m *PreferencesListRequest) Reset()
- func (m *PreferencesListRequest) String() string
- func (m *PreferencesListRequest) XXX_DiscardUnknown()
- func (m *PreferencesListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PreferencesListRequest) XXX_Merge(src proto.Message)
- func (m *PreferencesListRequest) XXX_Size() int
- func (m *PreferencesListRequest) XXX_Unmarshal(b []byte) error
- type PreferencesListResponse
- func (*PreferencesListResponse) Descriptor() ([]byte, []int)
- func (m *PreferencesListResponse) GetPrefers() []*Preference
- func (m *PreferencesListResponse) GetResultCode() int32
- func (*PreferencesListResponse) ProtoMessage()
- func (m *PreferencesListResponse) Reset()
- func (m *PreferencesListResponse) String() string
- func (m *PreferencesListResponse) XXX_DiscardUnknown()
- func (m *PreferencesListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PreferencesListResponse) XXX_Merge(src proto.Message)
- func (m *PreferencesListResponse) XXX_Size() int
- func (m *PreferencesListResponse) XXX_Unmarshal(b []byte) error
- type PreferencesService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPreferencesHandler ¶
func RegisterPreferencesHandler(s server.Server, hdlr PreferencesHandler, opts ...server.HandlerOption)
Types ¶
type Preference ¶
type Preference struct { User int32 `protobuf:"varint,1,opt,name=user,proto3" json:"user,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Preference) Descriptor ¶
func (*Preference) Descriptor() ([]byte, []int)
func (*Preference) GetName ¶
func (m *Preference) GetName() string
func (*Preference) GetUser ¶
func (m *Preference) GetUser() int32
func (*Preference) GetValue ¶
func (m *Preference) GetValue() string
func (*Preference) ProtoMessage ¶
func (*Preference) ProtoMessage()
func (*Preference) Reset ¶
func (m *Preference) Reset()
func (*Preference) String ¶
func (m *Preference) String() string
func (*Preference) XXX_DiscardUnknown ¶
func (m *Preference) XXX_DiscardUnknown()
func (*Preference) XXX_Marshal ¶
func (m *Preference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Preference) XXX_Merge ¶
func (dst *Preference) XXX_Merge(src proto.Message)
func (*Preference) XXX_Size ¶
func (m *Preference) XXX_Size() int
func (*Preference) XXX_Unmarshal ¶
func (m *Preference) XXX_Unmarshal(b []byte) error
type PreferenceRequest ¶
type PreferenceRequest struct { User int32 `protobuf:"varint,1,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PreferenceRequest) Descriptor ¶
func (*PreferenceRequest) Descriptor() ([]byte, []int)
func (*PreferenceRequest) GetUser ¶
func (m *PreferenceRequest) GetUser() int32
func (*PreferenceRequest) ProtoMessage ¶
func (*PreferenceRequest) ProtoMessage()
func (*PreferenceRequest) Reset ¶
func (m *PreferenceRequest) Reset()
func (*PreferenceRequest) String ¶
func (m *PreferenceRequest) String() string
func (*PreferenceRequest) XXX_DiscardUnknown ¶
func (m *PreferenceRequest) XXX_DiscardUnknown()
func (*PreferenceRequest) XXX_Marshal ¶
func (m *PreferenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PreferenceRequest) XXX_Merge ¶
func (dst *PreferenceRequest) XXX_Merge(src proto.Message)
func (*PreferenceRequest) XXX_Size ¶
func (m *PreferenceRequest) XXX_Size() int
func (*PreferenceRequest) XXX_Unmarshal ¶
func (m *PreferenceRequest) XXX_Unmarshal(b []byte) error
type PreferenceResponse ¶
type PreferenceResponse struct { ResultCode int32 `protobuf:"varint,1,opt,name=resultCode,proto3" json:"resultCode,omitempty"` Prefer *Preference `protobuf:"bytes,2,opt,name=prefer,proto3" json:"prefer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PreferenceResponse) Descriptor ¶
func (*PreferenceResponse) Descriptor() ([]byte, []int)
func (*PreferenceResponse) GetPrefer ¶
func (m *PreferenceResponse) GetPrefer() *Preference
func (*PreferenceResponse) GetResultCode ¶
func (m *PreferenceResponse) GetResultCode() int32
func (*PreferenceResponse) ProtoMessage ¶
func (*PreferenceResponse) ProtoMessage()
func (*PreferenceResponse) Reset ¶
func (m *PreferenceResponse) Reset()
func (*PreferenceResponse) String ¶
func (m *PreferenceResponse) String() string
func (*PreferenceResponse) XXX_DiscardUnknown ¶
func (m *PreferenceResponse) XXX_DiscardUnknown()
func (*PreferenceResponse) XXX_Marshal ¶
func (m *PreferenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PreferenceResponse) XXX_Merge ¶
func (dst *PreferenceResponse) XXX_Merge(src proto.Message)
func (*PreferenceResponse) XXX_Size ¶
func (m *PreferenceResponse) XXX_Size() int
func (*PreferenceResponse) XXX_Unmarshal ¶
func (m *PreferenceResponse) XXX_Unmarshal(b []byte) error
type PreferencesHandler ¶
type PreferencesHandler interface { GetPreference(context.Context, *PreferenceRequest, *PreferenceResponse) error GetPreferencesList(context.Context, *PreferencesListRequest, *PreferencesListResponse) error }
type PreferencesListRequest ¶
type PreferencesListRequest struct { Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PreferencesListRequest) Descriptor ¶
func (*PreferencesListRequest) Descriptor() ([]byte, []int)
func (*PreferencesListRequest) GetIndex ¶
func (m *PreferencesListRequest) GetIndex() int32
func (*PreferencesListRequest) GetLimit ¶
func (m *PreferencesListRequest) GetLimit() int32
func (*PreferencesListRequest) ProtoMessage ¶
func (*PreferencesListRequest) ProtoMessage()
func (*PreferencesListRequest) Reset ¶
func (m *PreferencesListRequest) Reset()
func (*PreferencesListRequest) String ¶
func (m *PreferencesListRequest) String() string
func (*PreferencesListRequest) XXX_DiscardUnknown ¶
func (m *PreferencesListRequest) XXX_DiscardUnknown()
func (*PreferencesListRequest) XXX_Marshal ¶
func (m *PreferencesListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PreferencesListRequest) XXX_Merge ¶
func (dst *PreferencesListRequest) XXX_Merge(src proto.Message)
func (*PreferencesListRequest) XXX_Size ¶
func (m *PreferencesListRequest) XXX_Size() int
func (*PreferencesListRequest) XXX_Unmarshal ¶
func (m *PreferencesListRequest) XXX_Unmarshal(b []byte) error
type PreferencesListResponse ¶
type PreferencesListResponse struct { ResultCode int32 `protobuf:"varint,1,opt,name=resultCode,proto3" json:"resultCode,omitempty"` Prefers []*Preference `protobuf:"bytes,2,rep,name=prefers,proto3" json:"prefers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PreferencesListResponse) Descriptor ¶
func (*PreferencesListResponse) Descriptor() ([]byte, []int)
func (*PreferencesListResponse) GetPrefers ¶
func (m *PreferencesListResponse) GetPrefers() []*Preference
func (*PreferencesListResponse) GetResultCode ¶
func (m *PreferencesListResponse) GetResultCode() int32
func (*PreferencesListResponse) ProtoMessage ¶
func (*PreferencesListResponse) ProtoMessage()
func (*PreferencesListResponse) Reset ¶
func (m *PreferencesListResponse) Reset()
func (*PreferencesListResponse) String ¶
func (m *PreferencesListResponse) String() string
func (*PreferencesListResponse) XXX_DiscardUnknown ¶
func (m *PreferencesListResponse) XXX_DiscardUnknown()
func (*PreferencesListResponse) XXX_Marshal ¶
func (m *PreferencesListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PreferencesListResponse) XXX_Merge ¶
func (dst *PreferencesListResponse) XXX_Merge(src proto.Message)
func (*PreferencesListResponse) XXX_Size ¶
func (m *PreferencesListResponse) XXX_Size() int
func (*PreferencesListResponse) XXX_Unmarshal ¶
func (m *PreferencesListResponse) XXX_Unmarshal(b []byte) error
type PreferencesService ¶
type PreferencesService interface { GetPreference(ctx context.Context, in *PreferenceRequest, opts ...client.CallOption) (*PreferenceResponse, error) GetPreferencesList(ctx context.Context, in *PreferencesListRequest, opts ...client.CallOption) (*PreferencesListResponse, error) }
func NewPreferencesService ¶
func NewPreferencesService(name string, c client.Client) PreferencesService
Click to show internal directories.
Click to hide internal directories.