go_micro_srv_dbservice

package
v0.0.0-...-26b160e Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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

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

Jump to

Keyboard shortcuts

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