user_agent

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package user_agent is a generated protocol buffer package.

It is generated from these files:

user.proto

It has these top-level messages:

Error
ReqMsg
ResMsg

Package user_agent is a generated protocol buffer package.

It is generated from these files:

user.proto

It has these top-level messages:

Error
ReqMsg
ResMsg

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 Error

type Error struct {
	Code int32  `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg" json:"msg,omitempty"`
}

func (*Error) Descriptor

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

func (*Error) GetCode

func (m *Error) GetCode() int32

func (*Error) GetMsg

func (m *Error) GetMsg() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

type ReqMsg

type ReqMsg struct {
	UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName" json:"user_name,omitempty"`
}

func (*ReqMsg) Descriptor

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

func (*ReqMsg) GetUserName

func (m *ReqMsg) GetUserName() string

func (*ReqMsg) ProtoMessage

func (*ReqMsg) ProtoMessage()

func (*ReqMsg) Reset

func (m *ReqMsg) Reset()

func (*ReqMsg) String

func (m *ReqMsg) String() string

type ResMsg

type ResMsg struct {
	Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
	Info  string `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"`
}

func (*ResMsg) Descriptor

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

func (*ResMsg) GetError

func (m *ResMsg) GetError() *Error

func (*ResMsg) GetInfo

func (m *ResMsg) GetInfo() string

func (*ResMsg) ProtoMessage

func (*ResMsg) ProtoMessage()

func (*ResMsg) Reset

func (m *ResMsg) Reset()

func (*ResMsg) String

func (m *ResMsg) String() string

type UserHandler

type UserHandler interface {
	RpcUserInfo(context.Context, *ReqMsg, *ResMsg) error
}

type UserService

type UserService interface {
	RpcUserInfo(ctx context.Context, in *ReqMsg, opts ...client.CallOption) (*ResMsg, 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