pb

package
v0.0.0-...-a2552a4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthUser = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUser   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterUserServer

func RegisterUserServer(s *grpc.Server, srv UserServer)

Types

type CreateUserCodeRequest

type CreateUserCodeRequest struct {
	CardId   uint32 `protobuf:"varint,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
	UserCode string `protobuf:"bytes,2,opt,name=user_code,json=userCode,proto3" json:"user_code,omitempty"`
}

func (*CreateUserCodeRequest) Descriptor

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

func (*CreateUserCodeRequest) Equal

func (this *CreateUserCodeRequest) Equal(that interface{}) bool

func (*CreateUserCodeRequest) GetCardId

func (m *CreateUserCodeRequest) GetCardId() uint32

func (*CreateUserCodeRequest) GetUserCode

func (m *CreateUserCodeRequest) GetUserCode() string

func (*CreateUserCodeRequest) GoString

func (this *CreateUserCodeRequest) GoString() string

func (*CreateUserCodeRequest) Marshal

func (m *CreateUserCodeRequest) Marshal() (dAtA []byte, err error)

func (*CreateUserCodeRequest) MarshalTo

func (m *CreateUserCodeRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateUserCodeRequest) MarshalToSizedBuffer

func (m *CreateUserCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateUserCodeRequest) ProtoMessage

func (*CreateUserCodeRequest) ProtoMessage()

func (*CreateUserCodeRequest) Reset

func (m *CreateUserCodeRequest) Reset()

func (*CreateUserCodeRequest) Size

func (m *CreateUserCodeRequest) Size() (n int)

func (*CreateUserCodeRequest) String

func (this *CreateUserCodeRequest) String() string

func (*CreateUserCodeRequest) Unmarshal

func (m *CreateUserCodeRequest) Unmarshal(dAtA []byte) error

func (*CreateUserCodeRequest) XXX_DiscardUnknown

func (m *CreateUserCodeRequest) XXX_DiscardUnknown()

func (*CreateUserCodeRequest) XXX_Marshal

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

func (*CreateUserCodeRequest) XXX_Merge

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

func (*CreateUserCodeRequest) XXX_Size

func (m *CreateUserCodeRequest) XXX_Size() int

func (*CreateUserCodeRequest) XXX_Unmarshal

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

type Session

type Session struct {
	Id        string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CardId    uint32          `protobuf:"varint,2,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
	ExpiresIn *types.Duration `protobuf:"bytes,3,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"`
}

func (*Session) Descriptor

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

func (*Session) Equal

func (this *Session) Equal(that interface{}) bool

func (*Session) GetCardId

func (m *Session) GetCardId() uint32

func (*Session) GetExpiresIn

func (m *Session) GetExpiresIn() *types.Duration

func (*Session) GetId

func (m *Session) GetId() string

func (*Session) GoString

func (this *Session) GoString() string

func (*Session) Marshal

func (m *Session) Marshal() (dAtA []byte, err error)

func (*Session) MarshalTo

func (m *Session) MarshalTo(dAtA []byte) (int, error)

func (*Session) MarshalToSizedBuffer

func (m *Session) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) Reset

func (m *Session) Reset()

func (*Session) Size

func (m *Session) Size() (n int)

func (*Session) String

func (this *Session) String() string

func (*Session) Unmarshal

func (m *Session) Unmarshal(dAtA []byte) error

func (*Session) XXX_DiscardUnknown

func (m *Session) XXX_DiscardUnknown()

func (*Session) XXX_Marshal

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

func (*Session) XXX_Merge

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

func (*Session) XXX_Size

func (m *Session) XXX_Size() int

func (*Session) XXX_Unmarshal

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

type SessionRequest

type SessionRequest struct {
	CardId uint32 `protobuf:"varint,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
}

func (*SessionRequest) Descriptor

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

func (*SessionRequest) Equal

func (this *SessionRequest) Equal(that interface{}) bool

func (*SessionRequest) GetCardId

func (m *SessionRequest) GetCardId() uint32

func (*SessionRequest) GoString

func (this *SessionRequest) GoString() string

func (*SessionRequest) Marshal

func (m *SessionRequest) Marshal() (dAtA []byte, err error)

func (*SessionRequest) MarshalTo

func (m *SessionRequest) MarshalTo(dAtA []byte) (int, error)

func (*SessionRequest) MarshalToSizedBuffer

func (m *SessionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionRequest) ProtoMessage

func (*SessionRequest) ProtoMessage()

func (*SessionRequest) Reset

func (m *SessionRequest) Reset()

func (*SessionRequest) Size

func (m *SessionRequest) Size() (n int)

func (*SessionRequest) String

func (this *SessionRequest) String() string

func (*SessionRequest) Unmarshal

func (m *SessionRequest) Unmarshal(dAtA []byte) error

func (*SessionRequest) XXX_DiscardUnknown

func (m *SessionRequest) XXX_DiscardUnknown()

func (*SessionRequest) XXX_Marshal

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

func (*SessionRequest) XXX_Merge

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

func (*SessionRequest) XXX_Size

func (m *SessionRequest) XXX_Size() int

func (*SessionRequest) XXX_Unmarshal

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

type SessionResponse

type SessionResponse struct {
	Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
}

func (*SessionResponse) Descriptor

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

func (*SessionResponse) Equal

func (this *SessionResponse) Equal(that interface{}) bool

func (*SessionResponse) GetSession

func (m *SessionResponse) GetSession() *Session

func (*SessionResponse) GoString

func (this *SessionResponse) GoString() string

func (*SessionResponse) Marshal

func (m *SessionResponse) Marshal() (dAtA []byte, err error)

func (*SessionResponse) MarshalTo

func (m *SessionResponse) MarshalTo(dAtA []byte) (int, error)

func (*SessionResponse) MarshalToSizedBuffer

func (m *SessionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionResponse) ProtoMessage

func (*SessionResponse) ProtoMessage()

func (*SessionResponse) Reset

func (m *SessionResponse) Reset()

func (*SessionResponse) Size

func (m *SessionResponse) Size() (n int)

func (*SessionResponse) String

func (this *SessionResponse) String() string

func (*SessionResponse) Unmarshal

func (m *SessionResponse) Unmarshal(dAtA []byte) error

func (*SessionResponse) XXX_DiscardUnknown

func (m *SessionResponse) XXX_DiscardUnknown()

func (*SessionResponse) XXX_Marshal

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

func (*SessionResponse) XXX_Merge

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

func (*SessionResponse) XXX_Size

func (m *SessionResponse) XXX_Size() int

func (*SessionResponse) XXX_Unmarshal

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

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServer) CreateUserCode

func (*UnimplementedUserServer) GetUserCode

func (*UnimplementedUserServer) NewSession

func (*UnimplementedUserServer) ValidateSession

type UserClient

type UserClient interface {
	NewSession(ctx context.Context, in *SessionRequest, opts ...grpc.CallOption) (*SessionResponse, error)
	ValidateSession(ctx context.Context, in *ValidateSessionRequest, opts ...grpc.CallOption) (*ValidateSessionResponse, error)
	GetUserCode(ctx context.Context, in *UserCodeRequest, opts ...grpc.CallOption) (*UserCodeResponse, error)
	CreateUserCode(ctx context.Context, in *CreateUserCodeRequest, opts ...grpc.CallOption) (*types.Empty, error)
}

UserClient is the client API for User service.

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

func NewUserClient

func NewUserClient(cc *grpc.ClientConn) UserClient

type UserCodeRequest

type UserCodeRequest struct {
	CardId uint32 `protobuf:"varint,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
}

func (*UserCodeRequest) Descriptor

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

func (*UserCodeRequest) Equal

func (this *UserCodeRequest) Equal(that interface{}) bool

func (*UserCodeRequest) GetCardId

func (m *UserCodeRequest) GetCardId() uint32

func (*UserCodeRequest) GoString

func (this *UserCodeRequest) GoString() string

func (*UserCodeRequest) Marshal

func (m *UserCodeRequest) Marshal() (dAtA []byte, err error)

func (*UserCodeRequest) MarshalTo

func (m *UserCodeRequest) MarshalTo(dAtA []byte) (int, error)

func (*UserCodeRequest) MarshalToSizedBuffer

func (m *UserCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UserCodeRequest) ProtoMessage

func (*UserCodeRequest) ProtoMessage()

func (*UserCodeRequest) Reset

func (m *UserCodeRequest) Reset()

func (*UserCodeRequest) Size

func (m *UserCodeRequest) Size() (n int)

func (*UserCodeRequest) String

func (this *UserCodeRequest) String() string

func (*UserCodeRequest) Unmarshal

func (m *UserCodeRequest) Unmarshal(dAtA []byte) error

func (*UserCodeRequest) XXX_DiscardUnknown

func (m *UserCodeRequest) XXX_DiscardUnknown()

func (*UserCodeRequest) XXX_Marshal

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

func (*UserCodeRequest) XXX_Merge

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

func (*UserCodeRequest) XXX_Size

func (m *UserCodeRequest) XXX_Size() int

func (*UserCodeRequest) XXX_Unmarshal

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

type UserCodeResponse

type UserCodeResponse struct {
	UserCode string `protobuf:"bytes,1,opt,name=user_code,json=userCode,proto3" json:"user_code,omitempty"`
}

func (*UserCodeResponse) Descriptor

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

func (*UserCodeResponse) Equal

func (this *UserCodeResponse) Equal(that interface{}) bool

func (*UserCodeResponse) GetUserCode

func (m *UserCodeResponse) GetUserCode() string

func (*UserCodeResponse) GoString

func (this *UserCodeResponse) GoString() string

func (*UserCodeResponse) Marshal

func (m *UserCodeResponse) Marshal() (dAtA []byte, err error)

func (*UserCodeResponse) MarshalTo

func (m *UserCodeResponse) MarshalTo(dAtA []byte) (int, error)

func (*UserCodeResponse) MarshalToSizedBuffer

func (m *UserCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UserCodeResponse) ProtoMessage

func (*UserCodeResponse) ProtoMessage()

func (*UserCodeResponse) Reset

func (m *UserCodeResponse) Reset()

func (*UserCodeResponse) Size

func (m *UserCodeResponse) Size() (n int)

func (*UserCodeResponse) String

func (this *UserCodeResponse) String() string

func (*UserCodeResponse) Unmarshal

func (m *UserCodeResponse) Unmarshal(dAtA []byte) error

func (*UserCodeResponse) XXX_DiscardUnknown

func (m *UserCodeResponse) XXX_DiscardUnknown()

func (*UserCodeResponse) XXX_Marshal

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

func (*UserCodeResponse) XXX_Merge

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

func (*UserCodeResponse) XXX_Size

func (m *UserCodeResponse) XXX_Size() int

func (*UserCodeResponse) XXX_Unmarshal

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

type UserServer

UserServer is the server API for User service.

type ValidateSessionRequest

type ValidateSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
}

func (*ValidateSessionRequest) Descriptor

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

func (*ValidateSessionRequest) Equal

func (this *ValidateSessionRequest) Equal(that interface{}) bool

func (*ValidateSessionRequest) GetSessionId

func (m *ValidateSessionRequest) GetSessionId() string

func (*ValidateSessionRequest) GoString

func (this *ValidateSessionRequest) GoString() string

func (*ValidateSessionRequest) Marshal

func (m *ValidateSessionRequest) Marshal() (dAtA []byte, err error)

func (*ValidateSessionRequest) MarshalTo

func (m *ValidateSessionRequest) MarshalTo(dAtA []byte) (int, error)

func (*ValidateSessionRequest) MarshalToSizedBuffer

func (m *ValidateSessionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidateSessionRequest) ProtoMessage

func (*ValidateSessionRequest) ProtoMessage()

func (*ValidateSessionRequest) Reset

func (m *ValidateSessionRequest) Reset()

func (*ValidateSessionRequest) Size

func (m *ValidateSessionRequest) Size() (n int)

func (*ValidateSessionRequest) String

func (this *ValidateSessionRequest) String() string

func (*ValidateSessionRequest) Unmarshal

func (m *ValidateSessionRequest) Unmarshal(dAtA []byte) error

func (*ValidateSessionRequest) XXX_DiscardUnknown

func (m *ValidateSessionRequest) XXX_DiscardUnknown()

func (*ValidateSessionRequest) XXX_Marshal

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

func (*ValidateSessionRequest) XXX_Merge

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

func (*ValidateSessionRequest) XXX_Size

func (m *ValidateSessionRequest) XXX_Size() int

func (*ValidateSessionRequest) XXX_Unmarshal

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

type ValidateSessionResponse

type ValidateSessionResponse struct {
	Valid   bool     `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
}

func (*ValidateSessionResponse) Descriptor

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

func (*ValidateSessionResponse) Equal

func (this *ValidateSessionResponse) Equal(that interface{}) bool

func (*ValidateSessionResponse) GetSession

func (m *ValidateSessionResponse) GetSession() *Session

func (*ValidateSessionResponse) GetValid

func (m *ValidateSessionResponse) GetValid() bool

func (*ValidateSessionResponse) GoString

func (this *ValidateSessionResponse) GoString() string

func (*ValidateSessionResponse) Marshal

func (m *ValidateSessionResponse) Marshal() (dAtA []byte, err error)

func (*ValidateSessionResponse) MarshalTo

func (m *ValidateSessionResponse) MarshalTo(dAtA []byte) (int, error)

func (*ValidateSessionResponse) MarshalToSizedBuffer

func (m *ValidateSessionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidateSessionResponse) ProtoMessage

func (*ValidateSessionResponse) ProtoMessage()

func (*ValidateSessionResponse) Reset

func (m *ValidateSessionResponse) Reset()

func (*ValidateSessionResponse) Size

func (m *ValidateSessionResponse) Size() (n int)

func (*ValidateSessionResponse) String

func (this *ValidateSessionResponse) String() string

func (*ValidateSessionResponse) Unmarshal

func (m *ValidateSessionResponse) Unmarshal(dAtA []byte) error

func (*ValidateSessionResponse) XXX_DiscardUnknown

func (m *ValidateSessionResponse) XXX_DiscardUnknown()

func (*ValidateSessionResponse) XXX_Marshal

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

func (*ValidateSessionResponse) XXX_Merge

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

func (*ValidateSessionResponse) XXX_Size

func (m *ValidateSessionResponse) XXX_Size() int

func (*ValidateSessionResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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