pb

package
v0.0.0-...-d91fea5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package pb is a generated twirp stub package. This code was generated with github.com/twitchtv/twirp/protoc-gen-twirp v5.5.0.

It is generated from these files:

money_balance.proto
money_command.proto
money_query.proto
money_transfer_command.proto
user.proto
user_command.proto
user_query.proto

Index

Constants

View Source
const MoneyCommandPathPrefix = "/twirp/money.MoneyCommand/"

MoneyCommandPathPrefix is used for all URL paths on a twirp MoneyCommand server. Requests are always: POST MoneyCommandPathPrefix/method It can be used in an HTTP mux to route twirp requests along with non-twirp requests on other routes.

View Source
const MoneyQueryPathPrefix = "/twirp/money.MoneyQuery/"

MoneyQueryPathPrefix is used for all URL paths on a twirp MoneyQuery server. Requests are always: POST MoneyQueryPathPrefix/method It can be used in an HTTP mux to route twirp requests along with non-twirp requests on other routes.

View Source
const MoneyTransferCommandPathPrefix = "/twirp/money.MoneyTransferCommand/"

MoneyTransferCommandPathPrefix is used for all URL paths on a twirp MoneyTransferCommand server. Requests are always: POST MoneyTransferCommandPathPrefix/method It can be used in an HTTP mux to route twirp requests along with non-twirp requests on other routes.

View Source
const UserCommandPathPrefix = "/twirp/user.UserCommand/"

UserCommandPathPrefix is used for all URL paths on a twirp UserCommand server. Requests are always: POST UserCommandPathPrefix/method It can be used in an HTTP mux to route twirp requests along with non-twirp requests on other routes.

View Source
const UserQueryPathPrefix = "/twirp/user.UserQuery/"

UserQueryPathPrefix is used for all URL paths on a twirp UserQuery server. Requests are always: POST UserQueryPathPrefix/method It can be used in an HTTP mux to route twirp requests along with non-twirp requests on other routes.

Variables

This section is empty.

Functions

func WriteError

func WriteError(resp http.ResponseWriter, err error)

WriteError writes an HTTP response with a valid Twirp error format. If err is not a twirp.Error, it will get wrapped with twirp.InternalErrorWith(err)

Types

type Balance

type Balance struct {
	UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// マイナスにならないことを前提としている
	Amount               uint64   `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Balance) Descriptor

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

func (*Balance) GetAmount

func (m *Balance) GetAmount() uint64

func (*Balance) GetUserId

func (m *Balance) GetUserId() uint64

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) Reset

func (m *Balance) Reset()

func (*Balance) String

func (m *Balance) String() string

func (*Balance) XXX_DiscardUnknown

func (m *Balance) XXX_DiscardUnknown()

func (*Balance) XXX_Marshal

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

func (*Balance) XXX_Merge

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

func (*Balance) XXX_Size

func (m *Balance) XXX_Size() int

func (*Balance) XXX_Unmarshal

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

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient is the interface used by generated clients to send HTTP requests. It is fulfilled by *(net/http).Client, which is sufficient for most users. Users can provide their own implementation for special retry policies.

HTTPClient implementations should not follow redirects. Redirects are automatically disabled if *(net/http).Client is passed to client constructors. See the withoutRedirects function in this file for more details.

type MoneyCommand

type MoneyCommand interface {
	// UserIDを指定して金額を増やす
	Gain(context.Context, *MoneyGainRequest) (*MoneyGainResponse, error)
}

func NewMoneyCommandJSONClient

func NewMoneyCommandJSONClient(addr string, client HTTPClient) MoneyCommand

NewMoneyCommandJSONClient creates a JSON client that implements the MoneyCommand interface. It communicates using JSON and can be configured with a custom HTTPClient.

func NewMoneyCommandProtobufClient

func NewMoneyCommandProtobufClient(addr string, client HTTPClient) MoneyCommand

NewMoneyCommandProtobufClient creates a Protobuf client that implements the MoneyCommand interface. It communicates using Protobuf and can be configured with a custom HTTPClient.

type MoneyGainRequest

type MoneyGainRequest struct {
	// ユーザーID
	UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// 金額
	Amount               uint64   `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MoneyGainRequest) Descriptor

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

func (*MoneyGainRequest) GetAmount

func (m *MoneyGainRequest) GetAmount() uint64

func (*MoneyGainRequest) GetUserId

func (m *MoneyGainRequest) GetUserId() uint64

func (*MoneyGainRequest) ProtoMessage

func (*MoneyGainRequest) ProtoMessage()

func (*MoneyGainRequest) Reset

func (m *MoneyGainRequest) Reset()

func (*MoneyGainRequest) String

func (m *MoneyGainRequest) String() string

func (*MoneyGainRequest) XXX_DiscardUnknown

func (m *MoneyGainRequest) XXX_DiscardUnknown()

func (*MoneyGainRequest) XXX_Marshal

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

func (*MoneyGainRequest) XXX_Merge

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

func (*MoneyGainRequest) XXX_Size

func (m *MoneyGainRequest) XXX_Size() int

func (*MoneyGainRequest) XXX_Unmarshal

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

type MoneyGainResponse

type MoneyGainResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MoneyGainResponse) Descriptor

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

func (*MoneyGainResponse) ProtoMessage

func (*MoneyGainResponse) ProtoMessage()

func (*MoneyGainResponse) Reset

func (m *MoneyGainResponse) Reset()

func (*MoneyGainResponse) String

func (m *MoneyGainResponse) String() string

func (*MoneyGainResponse) XXX_DiscardUnknown

func (m *MoneyGainResponse) XXX_DiscardUnknown()

func (*MoneyGainResponse) XXX_Marshal

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

func (*MoneyGainResponse) XXX_Merge

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

func (*MoneyGainResponse) XXX_Size

func (m *MoneyGainResponse) XXX_Size() int

func (*MoneyGainResponse) XXX_Unmarshal

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

type MoneyGetBalanceRequest

type MoneyGetBalanceRequest struct {
	UserId               uint64   `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MoneyGetBalanceRequest) Descriptor

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

func (*MoneyGetBalanceRequest) GetUserId

func (m *MoneyGetBalanceRequest) GetUserId() uint64

func (*MoneyGetBalanceRequest) ProtoMessage

func (*MoneyGetBalanceRequest) ProtoMessage()

func (*MoneyGetBalanceRequest) Reset

func (m *MoneyGetBalanceRequest) Reset()

func (*MoneyGetBalanceRequest) String

func (m *MoneyGetBalanceRequest) String() string

func (*MoneyGetBalanceRequest) XXX_DiscardUnknown

func (m *MoneyGetBalanceRequest) XXX_DiscardUnknown()

func (*MoneyGetBalanceRequest) XXX_Marshal

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

func (*MoneyGetBalanceRequest) XXX_Merge

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

func (*MoneyGetBalanceRequest) XXX_Size

func (m *MoneyGetBalanceRequest) XXX_Size() int

func (*MoneyGetBalanceRequest) XXX_Unmarshal

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

type MoneyGetBalanceResponse

type MoneyGetBalanceResponse struct {
	Balance              *Balance `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MoneyGetBalanceResponse) Descriptor

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

func (*MoneyGetBalanceResponse) GetBalance

func (m *MoneyGetBalanceResponse) GetBalance() *Balance

func (*MoneyGetBalanceResponse) ProtoMessage

func (*MoneyGetBalanceResponse) ProtoMessage()

func (*MoneyGetBalanceResponse) Reset

func (m *MoneyGetBalanceResponse) Reset()

func (*MoneyGetBalanceResponse) String

func (m *MoneyGetBalanceResponse) String() string

func (*MoneyGetBalanceResponse) XXX_DiscardUnknown

func (m *MoneyGetBalanceResponse) XXX_DiscardUnknown()

func (*MoneyGetBalanceResponse) XXX_Marshal

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

func (*MoneyGetBalanceResponse) XXX_Merge

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

func (*MoneyGetBalanceResponse) XXX_Size

func (m *MoneyGetBalanceResponse) XXX_Size() int

func (*MoneyGetBalanceResponse) XXX_Unmarshal

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

type MoneyQuery

type MoneyQuery interface {
	// 残高を取得する
	GetBalance(context.Context, *MoneyGetBalanceRequest) (*MoneyGetBalanceResponse, error)
}

func NewMoneyQueryJSONClient

func NewMoneyQueryJSONClient(addr string, client HTTPClient) MoneyQuery

NewMoneyQueryJSONClient creates a JSON client that implements the MoneyQuery interface. It communicates using JSON and can be configured with a custom HTTPClient.

func NewMoneyQueryProtobufClient

func NewMoneyQueryProtobufClient(addr string, client HTTPClient) MoneyQuery

NewMoneyQueryProtobufClient creates a Protobuf client that implements the MoneyQuery interface. It communicates using Protobuf and can be configured with a custom HTTPClient.

type MoneyTransferCommand

type MoneyTransferCommand interface {
	// user_idとamountを指定して送金する
	Send(context.Context, *MoneyTransferSendRequest) (*MoneyTransferSendResponse, error)
}

func NewMoneyTransferCommandJSONClient

func NewMoneyTransferCommandJSONClient(addr string, client HTTPClient) MoneyTransferCommand

NewMoneyTransferCommandJSONClient creates a JSON client that implements the MoneyTransferCommand interface. It communicates using JSON and can be configured with a custom HTTPClient.

func NewMoneyTransferCommandProtobufClient

func NewMoneyTransferCommandProtobufClient(addr string, client HTTPClient) MoneyTransferCommand

NewMoneyTransferCommandProtobufClient creates a Protobuf client that implements the MoneyTransferCommand interface. It communicates using Protobuf and can be configured with a custom HTTPClient.

type MoneyTransferSendRequest

type MoneyTransferSendRequest struct {
	// ユーザーID
	UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// 送金額
	Amount               uint64   `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MoneyTransferSendRequest) Descriptor

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

func (*MoneyTransferSendRequest) GetAmount

func (m *MoneyTransferSendRequest) GetAmount() uint64

func (*MoneyTransferSendRequest) GetUserId

func (m *MoneyTransferSendRequest) GetUserId() uint64

func (*MoneyTransferSendRequest) ProtoMessage

func (*MoneyTransferSendRequest) ProtoMessage()

func (*MoneyTransferSendRequest) Reset

func (m *MoneyTransferSendRequest) Reset()

func (*MoneyTransferSendRequest) String

func (m *MoneyTransferSendRequest) String() string

func (*MoneyTransferSendRequest) XXX_DiscardUnknown

func (m *MoneyTransferSendRequest) XXX_DiscardUnknown()

func (*MoneyTransferSendRequest) XXX_Marshal

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

func (*MoneyTransferSendRequest) XXX_Merge

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

func (*MoneyTransferSendRequest) XXX_Size

func (m *MoneyTransferSendRequest) XXX_Size() int

func (*MoneyTransferSendRequest) XXX_Unmarshal

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

type MoneyTransferSendResponse

type MoneyTransferSendResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MoneyTransferSendResponse) Descriptor

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

func (*MoneyTransferSendResponse) ProtoMessage

func (*MoneyTransferSendResponse) ProtoMessage()

func (*MoneyTransferSendResponse) Reset

func (m *MoneyTransferSendResponse) Reset()

func (*MoneyTransferSendResponse) String

func (m *MoneyTransferSendResponse) String() string

func (*MoneyTransferSendResponse) XXX_DiscardUnknown

func (m *MoneyTransferSendResponse) XXX_DiscardUnknown()

func (*MoneyTransferSendResponse) XXX_Marshal

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

func (*MoneyTransferSendResponse) XXX_Merge

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

func (*MoneyTransferSendResponse) XXX_Size

func (m *MoneyTransferSendResponse) XXX_Size() int

func (*MoneyTransferSendResponse) XXX_Unmarshal

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

type Profile

type Profile struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Age                  uint32   `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Profile) Descriptor

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

func (*Profile) GetAge

func (m *Profile) GetAge() uint32

func (*Profile) GetName

func (m *Profile) GetName() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) Reset

func (m *Profile) Reset()

func (*Profile) String

func (m *Profile) String() string

func (*Profile) XXX_DiscardUnknown

func (m *Profile) XXX_DiscardUnknown()

func (*Profile) XXX_Marshal

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

func (*Profile) XXX_Merge

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

func (*Profile) XXX_Size

func (m *Profile) XXX_Size() int

func (*Profile) XXX_Unmarshal

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

type TwirpServer

type TwirpServer interface {
	http.Handler
	// ServiceDescriptor returns gzipped bytes describing the .proto file that
	// this service was generated from. Once unzipped, the bytes can be
	// unmarshalled as a
	// github.com/golang/protobuf/protoc-gen-go/descriptor.FileDescriptorProto.
	//
	// The returned integer is the index of this particular service within that
	// FileDescriptorProto's 'Service' slice of ServiceDescriptorProtos. This is a
	// low-level field, expected to be used for reflection.
	ServiceDescriptor() ([]byte, int)
	// ProtocGenTwirpVersion is the semantic version string of the version of
	// twirp used to generate this file.
	ProtocGenTwirpVersion() string
}

TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service. Those accessors are a low-level API for building reflection tools. Most people can think of TwirpServers as just http.Handlers.

func NewMoneyCommandServer

func NewMoneyCommandServer(svc MoneyCommand, hooks *twirp.ServerHooks) TwirpServer

func NewMoneyQueryServer

func NewMoneyQueryServer(svc MoneyQuery, hooks *twirp.ServerHooks) TwirpServer

func NewMoneyTransferCommandServer

func NewMoneyTransferCommandServer(svc MoneyTransferCommand, hooks *twirp.ServerHooks) TwirpServer

func NewUserCommandServer

func NewUserCommandServer(svc UserCommand, hooks *twirp.ServerHooks) TwirpServer

func NewUserQueryServer

func NewUserQueryServer(svc UserQuery, hooks *twirp.ServerHooks) TwirpServer

type User

type User struct {
	Id                   uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserProfile          *Profile             `protobuf:"bytes,2,opt,name=user_profile,json=userProfile,proto3" json:"user_profile,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,101,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetCreatedAt

func (m *User) GetCreatedAt() *timestamp.Timestamp

func (*User) GetId

func (m *User) GetId() uint64

func (*User) GetUpdatedAt

func (m *User) GetUpdatedAt() *timestamp.Timestamp

func (*User) GetUserProfile

func (m *User) GetUserProfile() *Profile

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

type UserCommand

type UserCommand interface {
	// ユーザー登録
	Register(context.Context, *UserRegisterRequest) (*UserRegisterResponse, error)

	// プロフィール更新
	UpdateProfile(context.Context, *UserUpdateProfileRequest) (*UserUpdateProfileResponse, error)
}

func NewUserCommandJSONClient

func NewUserCommandJSONClient(addr string, client HTTPClient) UserCommand

NewUserCommandJSONClient creates a JSON client that implements the UserCommand interface. It communicates using JSON and can be configured with a custom HTTPClient.

func NewUserCommandProtobufClient

func NewUserCommandProtobufClient(addr string, client HTTPClient) UserCommand

NewUserCommandProtobufClient creates a Protobuf client that implements the UserCommand interface. It communicates using Protobuf and can be configured with a custom HTTPClient.

type UserGetRequest

type UserGetRequest struct {
	UserId               uint64   `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserGetRequest) Descriptor

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

func (*UserGetRequest) GetUserId

func (m *UserGetRequest) GetUserId() uint64

func (*UserGetRequest) ProtoMessage

func (*UserGetRequest) ProtoMessage()

func (*UserGetRequest) Reset

func (m *UserGetRequest) Reset()

func (*UserGetRequest) String

func (m *UserGetRequest) String() string

func (*UserGetRequest) XXX_DiscardUnknown

func (m *UserGetRequest) XXX_DiscardUnknown()

func (*UserGetRequest) XXX_Marshal

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

func (*UserGetRequest) XXX_Merge

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

func (*UserGetRequest) XXX_Size

func (m *UserGetRequest) XXX_Size() int

func (*UserGetRequest) XXX_Unmarshal

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

type UserGetResponse

type UserGetResponse struct {
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserGetResponse) Descriptor

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

func (*UserGetResponse) GetUser

func (m *UserGetResponse) GetUser() *User

func (*UserGetResponse) ProtoMessage

func (*UserGetResponse) ProtoMessage()

func (*UserGetResponse) Reset

func (m *UserGetResponse) Reset()

func (*UserGetResponse) String

func (m *UserGetResponse) String() string

func (*UserGetResponse) XXX_DiscardUnknown

func (m *UserGetResponse) XXX_DiscardUnknown()

func (*UserGetResponse) XXX_Marshal

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

func (*UserGetResponse) XXX_Merge

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

func (*UserGetResponse) XXX_Size

func (m *UserGetResponse) XXX_Size() int

func (*UserGetResponse) XXX_Unmarshal

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

type UserQuery

type UserQuery interface {
	// ユーザーを取得する
	Get(context.Context, *UserGetRequest) (*UserGetResponse, error)
}

func NewUserQueryJSONClient

func NewUserQueryJSONClient(addr string, client HTTPClient) UserQuery

NewUserQueryJSONClient creates a JSON client that implements the UserQuery interface. It communicates using JSON and can be configured with a custom HTTPClient.

func NewUserQueryProtobufClient

func NewUserQueryProtobufClient(addr string, client HTTPClient) UserQuery

NewUserQueryProtobufClient creates a Protobuf client that implements the UserQuery interface. It communicates using Protobuf and can be configured with a custom HTTPClient.

type UserRegisterRequest

type UserRegisterRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserRegisterRequest) Descriptor

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

func (*UserRegisterRequest) ProtoMessage

func (*UserRegisterRequest) ProtoMessage()

func (*UserRegisterRequest) Reset

func (m *UserRegisterRequest) Reset()

func (*UserRegisterRequest) String

func (m *UserRegisterRequest) String() string

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 (dst *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 {
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserRegisterResponse) Descriptor

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

func (*UserRegisterResponse) GetUser

func (m *UserRegisterResponse) GetUser() *User

func (*UserRegisterResponse) ProtoMessage

func (*UserRegisterResponse) ProtoMessage()

func (*UserRegisterResponse) Reset

func (m *UserRegisterResponse) Reset()

func (*UserRegisterResponse) String

func (m *UserRegisterResponse) String() string

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 (dst *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 UserUpdateProfileRequest

type UserUpdateProfileRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Age                  uint32   `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserUpdateProfileRequest) Descriptor

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

func (*UserUpdateProfileRequest) GetAge

func (m *UserUpdateProfileRequest) GetAge() uint32

func (*UserUpdateProfileRequest) GetName

func (m *UserUpdateProfileRequest) GetName() string

func (*UserUpdateProfileRequest) ProtoMessage

func (*UserUpdateProfileRequest) ProtoMessage()

func (*UserUpdateProfileRequest) Reset

func (m *UserUpdateProfileRequest) Reset()

func (*UserUpdateProfileRequest) String

func (m *UserUpdateProfileRequest) String() string

func (*UserUpdateProfileRequest) XXX_DiscardUnknown

func (m *UserUpdateProfileRequest) XXX_DiscardUnknown()

func (*UserUpdateProfileRequest) XXX_Marshal

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

func (*UserUpdateProfileRequest) XXX_Merge

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

func (*UserUpdateProfileRequest) XXX_Size

func (m *UserUpdateProfileRequest) XXX_Size() int

func (*UserUpdateProfileRequest) XXX_Unmarshal

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

type UserUpdateProfileResponse

type UserUpdateProfileResponse struct {
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserUpdateProfileResponse) Descriptor

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

func (*UserUpdateProfileResponse) GetUser

func (m *UserUpdateProfileResponse) GetUser() *User

func (*UserUpdateProfileResponse) ProtoMessage

func (*UserUpdateProfileResponse) ProtoMessage()

func (*UserUpdateProfileResponse) Reset

func (m *UserUpdateProfileResponse) Reset()

func (*UserUpdateProfileResponse) String

func (m *UserUpdateProfileResponse) String() string

func (*UserUpdateProfileResponse) XXX_DiscardUnknown

func (m *UserUpdateProfileResponse) XXX_DiscardUnknown()

func (*UserUpdateProfileResponse) XXX_Marshal

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

func (*UserUpdateProfileResponse) XXX_Merge

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

func (*UserUpdateProfileResponse) XXX_Size

func (m *UserUpdateProfileResponse) XXX_Size() int

func (*UserUpdateProfileResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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