gateway

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s giraffe_micro.Server, srv Service)

Types

type Client

type Client interface {
	ListApiKey(ctx context.Context, in *ListApiKeyRequest) (*ListApiKeyResponse, error)
	UserRegister(ctx context.Context, in *UserRegisterRequest) (*UserRegisterResponse, error)
}

Client is the client API for gateway service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewClient

func NewClient(c giraffe_micro.Client) Client

type ListApiKeyRequest

type ListApiKeyRequest struct {
	//
	//页码
	Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page" form:"page"`
	//
	//页大小
	PageSize             int32    `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ListApiKey请求

func (*ListApiKeyRequest) Descriptor

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

func (*ListApiKeyRequest) GetPage

func (m *ListApiKeyRequest) GetPage() int32

func (*ListApiKeyRequest) GetPageSize

func (m *ListApiKeyRequest) GetPageSize() int32

func (*ListApiKeyRequest) ProtoMessage

func (*ListApiKeyRequest) ProtoMessage()

func (*ListApiKeyRequest) Reset

func (m *ListApiKeyRequest) Reset()

func (*ListApiKeyRequest) String

func (m *ListApiKeyRequest) String() string

func (*ListApiKeyRequest) Validate

func (this *ListApiKeyRequest) Validate() error

func (*ListApiKeyRequest) XXX_DiscardUnknown

func (m *ListApiKeyRequest) XXX_DiscardUnknown()

func (*ListApiKeyRequest) XXX_Marshal

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

func (*ListApiKeyRequest) XXX_Merge

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

func (*ListApiKeyRequest) XXX_Size

func (m *ListApiKeyRequest) XXX_Size() int

func (*ListApiKeyRequest) XXX_Unmarshal

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

type ListApiKeyResponse

type ListApiKeyResponse struct {
	//
	//页数
	Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page" form:"page"`
	//
	//页大小
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"`
	//
	//总数
	Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total" form:"total"`
	//
	//数据列表
	List                 []*ListApiKeyResponse_List `protobuf:"bytes,4,rep,name=list,proto3" json:"list" form:"list"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

ListApiKey返回

func (*ListApiKeyResponse) Descriptor

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

func (*ListApiKeyResponse) GetList

func (*ListApiKeyResponse) GetPage

func (m *ListApiKeyResponse) GetPage() int32

func (*ListApiKeyResponse) GetPageSize

func (m *ListApiKeyResponse) GetPageSize() int32

func (*ListApiKeyResponse) GetTotal

func (m *ListApiKeyResponse) GetTotal() int32

func (*ListApiKeyResponse) ProtoMessage

func (*ListApiKeyResponse) ProtoMessage()

func (*ListApiKeyResponse) Reset

func (m *ListApiKeyResponse) Reset()

func (*ListApiKeyResponse) String

func (m *ListApiKeyResponse) String() string

func (*ListApiKeyResponse) Validate

func (this *ListApiKeyResponse) Validate() error

func (*ListApiKeyResponse) XXX_DiscardUnknown

func (m *ListApiKeyResponse) XXX_DiscardUnknown()

func (*ListApiKeyResponse) XXX_Marshal

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

func (*ListApiKeyResponse) XXX_Merge

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

func (*ListApiKeyResponse) XXX_Size

func (m *ListApiKeyResponse) XXX_Size() int

func (*ListApiKeyResponse) XXX_Unmarshal

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

type ListApiKeyResponseWrapper

type ListApiKeyResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *ListApiKeyResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

ListApiKeyApi返回

func (*ListApiKeyResponseWrapper) Descriptor

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

func (*ListApiKeyResponseWrapper) GetCode

func (m *ListApiKeyResponseWrapper) GetCode() int32

func (*ListApiKeyResponseWrapper) GetCodeExplain

func (m *ListApiKeyResponseWrapper) GetCodeExplain() string

func (*ListApiKeyResponseWrapper) GetData

func (*ListApiKeyResponseWrapper) GetError

func (m *ListApiKeyResponseWrapper) GetError() string

func (*ListApiKeyResponseWrapper) ProtoMessage

func (*ListApiKeyResponseWrapper) ProtoMessage()

func (*ListApiKeyResponseWrapper) Reset

func (m *ListApiKeyResponseWrapper) Reset()

func (*ListApiKeyResponseWrapper) String

func (m *ListApiKeyResponseWrapper) String() string

func (*ListApiKeyResponseWrapper) Validate

func (this *ListApiKeyResponseWrapper) Validate() error

func (*ListApiKeyResponseWrapper) XXX_DiscardUnknown

func (m *ListApiKeyResponseWrapper) XXX_DiscardUnknown()

func (*ListApiKeyResponseWrapper) XXX_Marshal

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

func (*ListApiKeyResponseWrapper) XXX_Merge

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

func (*ListApiKeyResponseWrapper) XXX_Size

func (m *ListApiKeyResponseWrapper) XXX_Size() int

func (*ListApiKeyResponseWrapper) XXX_Unmarshal

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

type ListApiKeyResponse_List

type ListApiKeyResponse_List struct {
	//
	//用户名
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user" form:"user"`
	//
	//access_key
	AccessKey string `protobuf:"bytes,2,opt,name=access_key,json=accessKey,proto3" json:"access_key" form:"access_key"`
	//
	//secret_key
	SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key" form:"secret_key"`
	//
	//是否可用
	State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state" form:"state"`
	//
	//org
	Org int32 `protobuf:"varint,5,opt,name=org,proto3" json:"org" form:"org"`
	//
	//创建时间
	Ctime string `protobuf:"bytes,6,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//更新时间戳
	Ts                   int32    `protobuf:"varint,7,opt,name=ts,proto3" json:"ts" form:"ts"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListApiKeyResponse_List) Descriptor

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

func (*ListApiKeyResponse_List) GetAccessKey

func (m *ListApiKeyResponse_List) GetAccessKey() string

func (*ListApiKeyResponse_List) GetCtime

func (m *ListApiKeyResponse_List) GetCtime() string

func (*ListApiKeyResponse_List) GetOrg

func (m *ListApiKeyResponse_List) GetOrg() int32

func (*ListApiKeyResponse_List) GetSecretKey

func (m *ListApiKeyResponse_List) GetSecretKey() string

func (*ListApiKeyResponse_List) GetState

func (m *ListApiKeyResponse_List) GetState() string

func (*ListApiKeyResponse_List) GetTs

func (m *ListApiKeyResponse_List) GetTs() int32

func (*ListApiKeyResponse_List) GetUser

func (m *ListApiKeyResponse_List) GetUser() string

func (*ListApiKeyResponse_List) ProtoMessage

func (*ListApiKeyResponse_List) ProtoMessage()

func (*ListApiKeyResponse_List) Reset

func (m *ListApiKeyResponse_List) Reset()

func (*ListApiKeyResponse_List) String

func (m *ListApiKeyResponse_List) String() string

func (*ListApiKeyResponse_List) Validate

func (this *ListApiKeyResponse_List) Validate() error

func (*ListApiKeyResponse_List) XXX_DiscardUnknown

func (m *ListApiKeyResponse_List) XXX_DiscardUnknown()

func (*ListApiKeyResponse_List) XXX_Marshal

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

func (*ListApiKeyResponse_List) XXX_Merge

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

func (*ListApiKeyResponse_List) XXX_Size

func (m *ListApiKeyResponse_List) XXX_Size() int

func (*ListApiKeyResponse_List) XXX_Unmarshal

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

type Service

type Service interface {
	ListApiKey(context.Context, *ListApiKeyRequest) (*ListApiKeyResponse, error)
	UserRegister(context.Context, *UserRegisterRequest) (*UserRegisterResponse, error)
}

Service is the server API for gateway service.

type UserRegisterRequest

type UserRegisterRequest struct {
	//
	//用户名
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//密码
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password" form:"password"`
	//
	//邮箱
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email" form:"email"`
	//
	//邀请码
	Invite               string   `protobuf:"bytes,4,opt,name=invite,proto3" json:"invite" form:"invite"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UserRegister请求

func (*UserRegisterRequest) Descriptor

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

func (*UserRegisterRequest) GetEmail

func (m *UserRegisterRequest) GetEmail() string

func (*UserRegisterRequest) GetInvite

func (m *UserRegisterRequest) GetInvite() string

func (*UserRegisterRequest) GetName

func (m *UserRegisterRequest) GetName() string

func (*UserRegisterRequest) GetPassword

func (m *UserRegisterRequest) GetPassword() string

func (*UserRegisterRequest) ProtoMessage

func (*UserRegisterRequest) ProtoMessage()

func (*UserRegisterRequest) Reset

func (m *UserRegisterRequest) Reset()

func (*UserRegisterRequest) String

func (m *UserRegisterRequest) String() string

func (*UserRegisterRequest) Validate

func (this *UserRegisterRequest) Validate() error

func (*UserRegisterRequest) XXX_DiscardUnknown

func (m *UserRegisterRequest) XXX_DiscardUnknown()

func (*UserRegisterRequest) XXX_Marshal

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

func (*UserRegisterRequest) XXX_Merge

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

func (*UserRegisterRequest) XXX_Size

func (m *UserRegisterRequest) XXX_Size() int

func (*UserRegisterRequest) XXX_Unmarshal

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

type UserRegisterResponse

type UserRegisterResponse struct {
	//
	//用户名
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//邮箱
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email" form:"email"`
	//
	//org
	Org                  int32    `protobuf:"varint,3,opt,name=org,proto3" json:"org" form:"org"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UserRegister返回

func (*UserRegisterResponse) Descriptor

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

func (*UserRegisterResponse) GetEmail

func (m *UserRegisterResponse) GetEmail() string

func (*UserRegisterResponse) GetName

func (m *UserRegisterResponse) GetName() string

func (*UserRegisterResponse) GetOrg

func (m *UserRegisterResponse) GetOrg() int32

func (*UserRegisterResponse) ProtoMessage

func (*UserRegisterResponse) ProtoMessage()

func (*UserRegisterResponse) Reset

func (m *UserRegisterResponse) Reset()

func (*UserRegisterResponse) String

func (m *UserRegisterResponse) String() string

func (*UserRegisterResponse) Validate

func (this *UserRegisterResponse) Validate() error

func (*UserRegisterResponse) XXX_DiscardUnknown

func (m *UserRegisterResponse) XXX_DiscardUnknown()

func (*UserRegisterResponse) XXX_Marshal

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

func (*UserRegisterResponse) XXX_Merge

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

func (*UserRegisterResponse) XXX_Size

func (m *UserRegisterResponse) XXX_Size() int

func (*UserRegisterResponse) XXX_Unmarshal

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

type UserRegisterResponseWrapper

type UserRegisterResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *UserRegisterResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

UserRegisterApi返回

func (*UserRegisterResponseWrapper) Descriptor

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

func (*UserRegisterResponseWrapper) GetCode

func (m *UserRegisterResponseWrapper) GetCode() int32

func (*UserRegisterResponseWrapper) GetCodeExplain

func (m *UserRegisterResponseWrapper) GetCodeExplain() string

func (*UserRegisterResponseWrapper) GetData

func (*UserRegisterResponseWrapper) GetError

func (m *UserRegisterResponseWrapper) GetError() string

func (*UserRegisterResponseWrapper) ProtoMessage

func (*UserRegisterResponseWrapper) ProtoMessage()

func (*UserRegisterResponseWrapper) Reset

func (m *UserRegisterResponseWrapper) Reset()

func (*UserRegisterResponseWrapper) String

func (m *UserRegisterResponseWrapper) String() string

func (*UserRegisterResponseWrapper) Validate

func (this *UserRegisterResponseWrapper) Validate() error

func (*UserRegisterResponseWrapper) XXX_DiscardUnknown

func (m *UserRegisterResponseWrapper) XXX_DiscardUnknown()

func (*UserRegisterResponseWrapper) XXX_Marshal

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

func (*UserRegisterResponseWrapper) XXX_Merge

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

func (*UserRegisterResponseWrapper) XXX_Size

func (m *UserRegisterResponseWrapper) XXX_Size() int

func (*UserRegisterResponseWrapper) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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