go_micro_srv_dataservice

package
v0.0.0-...-459e612 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package go_micro_srv_dataservice is a generated protocol buffer package.

It is generated from these files:

user.proto

It has these top-level messages:

CreateUserReq
CreateUserResp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserHandler

func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption) error

Types

type CreateUserReq

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

func (*CreateUserReq) Descriptor

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

func (*CreateUserReq) GetName

func (m *CreateUserReq) GetName() string

func (*CreateUserReq) ProtoMessage

func (*CreateUserReq) ProtoMessage()

func (*CreateUserReq) Reset

func (m *CreateUserReq) Reset()

func (*CreateUserReq) String

func (m *CreateUserReq) String() string

func (*CreateUserReq) XXX_DiscardUnknown

func (m *CreateUserReq) XXX_DiscardUnknown()

func (*CreateUserReq) XXX_Marshal

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

func (*CreateUserReq) XXX_Merge

func (dst *CreateUserReq) XXX_Merge(src proto.Message)

func (*CreateUserReq) XXX_Size

func (m *CreateUserReq) XXX_Size() int

func (*CreateUserReq) XXX_Unmarshal

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

type CreateUserResp

type CreateUserResp struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateUserResp) Descriptor

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

func (*CreateUserResp) GetMsg

func (m *CreateUserResp) GetMsg() string

func (*CreateUserResp) ProtoMessage

func (*CreateUserResp) ProtoMessage()

func (*CreateUserResp) Reset

func (m *CreateUserResp) Reset()

func (*CreateUserResp) String

func (m *CreateUserResp) String() string

func (*CreateUserResp) XXX_DiscardUnknown

func (m *CreateUserResp) XXX_DiscardUnknown()

func (*CreateUserResp) XXX_Marshal

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

func (*CreateUserResp) XXX_Merge

func (dst *CreateUserResp) XXX_Merge(src proto.Message)

func (*CreateUserResp) XXX_Size

func (m *CreateUserResp) XXX_Size() int

func (*CreateUserResp) XXX_Unmarshal

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

type UserHandler

type UserHandler interface {
	CreateUser(context.Context, *CreateUserReq, *CreateUserResp) error
}

type UserService

type UserService interface {
	CreateUser(ctx context.Context, in *CreateUserReq, opts ...client.CallOption) (*CreateUserResp, error)
}

func NewUserService

func NewUserService(name string, c client.Client) UserService

Jump to

Keyboard shortcuts

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