Documentation ¶
Overview ¶
Package gateway is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package gateway is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterCustomerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCustomerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CustomerServiceClient) error
- func RegisterCustomerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCustomerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CustomerServiceServer) error
- func RegisterCustomerServiceServer(s *grpc.Server, srv CustomerServiceServer)
- func RegisterPlatformServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPlatformServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PlatformServiceClient) error
- func RegisterPlatformServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPlatformServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PlatformServiceServer) error
- func RegisterPlatformServiceServer(s *grpc.Server, srv PlatformServiceServer)
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)
- func (m *Customer) GetCreatedAt() string
- func (m *Customer) GetEmail() string
- func (m *Customer) GetFirstName() string
- func (m *Customer) GetId() string
- func (m *Customer) GetLastName() string
- func (m *Customer) GetMiddleName() string
- func (m *Customer) GetNote() string
- func (m *Customer) GetPhone() string
- func (m *Customer) GetPlatformId() string
- func (m *Customer) GetStatus() string
- func (m *Customer) GetUpdatedAt() string
- func (m *Customer) Marshal() (dAtA []byte, err error)
- func (m *Customer) MarshalTo(dAtA []byte) (int, error)
- func (m *Customer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Customer) ProtoMessage()
- func (m *Customer) Reset()
- func (m *Customer) Size() (n int)
- func (m *Customer) String() string
- func (m *Customer) Unmarshal(dAtA []byte) error
- func (this *Customer) Validate() error
- func (m *Customer) XXX_DiscardUnknown()
- func (m *Customer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Customer) XXX_Merge(src proto.Message)
- func (*Customer) XXX_MessageName() string
- func (m *Customer) XXX_Size() int
- func (m *Customer) XXX_Unmarshal(b []byte) error
- type CustomerServiceClient
- type CustomerServiceServer
- type ListCustomerRequest
- func (*ListCustomerRequest) Descriptor() ([]byte, []int)
- func (m *ListCustomerRequest) GetLimit() uint32
- func (m *ListCustomerRequest) GetPage() uint32
- func (m *ListCustomerRequest) GetPlatformId() string
- func (m *ListCustomerRequest) Marshal() (dAtA []byte, err error)
- func (m *ListCustomerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListCustomerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListCustomerRequest) ProtoMessage()
- func (m *ListCustomerRequest) Reset()
- func (m *ListCustomerRequest) Size() (n int)
- func (m *ListCustomerRequest) String() string
- func (m *ListCustomerRequest) Unmarshal(dAtA []byte) error
- func (this *ListCustomerRequest) Validate() error
- func (m *ListCustomerRequest) XXX_DiscardUnknown()
- func (m *ListCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCustomerRequest) XXX_Merge(src proto.Message)
- func (*ListCustomerRequest) XXX_MessageName() string
- func (m *ListCustomerRequest) XXX_Size() int
- func (m *ListCustomerRequest) XXX_Unmarshal(b []byte) error
- type ListCustomerResponse
- func (*ListCustomerResponse) Descriptor() ([]byte, []int)
- func (m *ListCustomerResponse) GetItems() []*Customer
- func (m *ListCustomerResponse) GetLimit() uint32
- func (m *ListCustomerResponse) GetMaxPage() uint32
- func (m *ListCustomerResponse) GetPage() uint32
- func (m *ListCustomerResponse) GetTotalCount() uint32
- func (m *ListCustomerResponse) Marshal() (dAtA []byte, err error)
- func (m *ListCustomerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListCustomerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListCustomerResponse) ProtoMessage()
- func (m *ListCustomerResponse) Reset()
- func (m *ListCustomerResponse) Size() (n int)
- func (m *ListCustomerResponse) String() string
- func (m *ListCustomerResponse) Unmarshal(dAtA []byte) error
- func (this *ListCustomerResponse) Validate() error
- func (m *ListCustomerResponse) XXX_DiscardUnknown()
- func (m *ListCustomerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCustomerResponse) XXX_Merge(src proto.Message)
- func (*ListCustomerResponse) XXX_MessageName() string
- func (m *ListCustomerResponse) XXX_Size() int
- func (m *ListCustomerResponse) XXX_Unmarshal(b []byte) error
- type ListPlatformRequest
- func (*ListPlatformRequest) Descriptor() ([]byte, []int)
- func (m *ListPlatformRequest) GetLimit() uint32
- func (m *ListPlatformRequest) GetPage() uint32
- func (m *ListPlatformRequest) GetType() string
- func (m *ListPlatformRequest) Marshal() (dAtA []byte, err error)
- func (m *ListPlatformRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListPlatformRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListPlatformRequest) ProtoMessage()
- func (m *ListPlatformRequest) Reset()
- func (m *ListPlatformRequest) Size() (n int)
- func (m *ListPlatformRequest) String() string
- func (m *ListPlatformRequest) Unmarshal(dAtA []byte) error
- func (this *ListPlatformRequest) Validate() error
- func (m *ListPlatformRequest) XXX_DiscardUnknown()
- func (m *ListPlatformRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPlatformRequest) XXX_Merge(src proto.Message)
- func (*ListPlatformRequest) XXX_MessageName() string
- func (m *ListPlatformRequest) XXX_Size() int
- func (m *ListPlatformRequest) XXX_Unmarshal(b []byte) error
- type ListPlatformResponse
- func (*ListPlatformResponse) Descriptor() ([]byte, []int)
- func (m *ListPlatformResponse) GetItems() []*Platform
- func (m *ListPlatformResponse) GetLimit() uint32
- func (m *ListPlatformResponse) GetMaxPage() uint32
- func (m *ListPlatformResponse) GetPage() uint32
- func (m *ListPlatformResponse) GetTotalCount() uint32
- func (m *ListPlatformResponse) Marshal() (dAtA []byte, err error)
- func (m *ListPlatformResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListPlatformResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListPlatformResponse) ProtoMessage()
- func (m *ListPlatformResponse) Reset()
- func (m *ListPlatformResponse) Size() (n int)
- func (m *ListPlatformResponse) String() string
- func (m *ListPlatformResponse) Unmarshal(dAtA []byte) error
- func (this *ListPlatformResponse) Validate() error
- func (m *ListPlatformResponse) XXX_DiscardUnknown()
- func (m *ListPlatformResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPlatformResponse) XXX_Merge(src proto.Message)
- func (*ListPlatformResponse) XXX_MessageName() string
- func (m *ListPlatformResponse) XXX_Size() int
- func (m *ListPlatformResponse) XXX_Unmarshal(b []byte) error
- type OneCustomerRequest
- func (*OneCustomerRequest) Descriptor() ([]byte, []int)
- func (m *OneCustomerRequest) GetId() string
- func (m *OneCustomerRequest) GetPlatformId() string
- func (m *OneCustomerRequest) Marshal() (dAtA []byte, err error)
- func (m *OneCustomerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *OneCustomerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OneCustomerRequest) ProtoMessage()
- func (m *OneCustomerRequest) Reset()
- func (m *OneCustomerRequest) Size() (n int)
- func (m *OneCustomerRequest) String() string
- func (m *OneCustomerRequest) Unmarshal(dAtA []byte) error
- func (this *OneCustomerRequest) Validate() error
- func (m *OneCustomerRequest) XXX_DiscardUnknown()
- func (m *OneCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OneCustomerRequest) XXX_Merge(src proto.Message)
- func (*OneCustomerRequest) XXX_MessageName() string
- func (m *OneCustomerRequest) XXX_Size() int
- func (m *OneCustomerRequest) XXX_Unmarshal(b []byte) error
- type OnePlatformRequest
- func (*OnePlatformRequest) Descriptor() ([]byte, []int)
- func (m *OnePlatformRequest) GetId() string
- func (m *OnePlatformRequest) Marshal() (dAtA []byte, err error)
- func (m *OnePlatformRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *OnePlatformRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OnePlatformRequest) ProtoMessage()
- func (m *OnePlatformRequest) Reset()
- func (m *OnePlatformRequest) Size() (n int)
- func (m *OnePlatformRequest) String() string
- func (m *OnePlatformRequest) Unmarshal(dAtA []byte) error
- func (this *OnePlatformRequest) Validate() error
- func (m *OnePlatformRequest) XXX_DiscardUnknown()
- func (m *OnePlatformRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OnePlatformRequest) XXX_Merge(src proto.Message)
- func (*OnePlatformRequest) XXX_MessageName() string
- func (m *OnePlatformRequest) XXX_Size() int
- func (m *OnePlatformRequest) XXX_Unmarshal(b []byte) error
- type Platform
- func (*Platform) Descriptor() ([]byte, []int)
- func (m *Platform) GetAccessToken() string
- func (m *Platform) GetAccessTokenSecret() string
- func (m *Platform) GetApiUrl() string
- func (m *Platform) GetCreatedAt() string
- func (m *Platform) GetId() string
- func (m *Platform) GetName() string
- func (m *Platform) GetType() string
- func (m *Platform) GetUpdatedAt() string
- func (m *Platform) Marshal() (dAtA []byte, err error)
- func (m *Platform) MarshalTo(dAtA []byte) (int, error)
- func (m *Platform) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Platform) ProtoMessage()
- func (m *Platform) Reset()
- func (m *Platform) Size() (n int)
- func (m *Platform) String() string
- func (m *Platform) Unmarshal(dAtA []byte) error
- func (this *Platform) Validate() error
- func (m *Platform) XXX_DiscardUnknown()
- func (m *Platform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Platform) XXX_Merge(src proto.Message)
- func (*Platform) XXX_MessageName() string
- func (m *Platform) XXX_Size() int
- func (m *Platform) XXX_Unmarshal(b []byte) error
- type PlatformServiceClient
- type PlatformServiceServer
- type UnimplementedCustomerServiceServer
- func (*UnimplementedCustomerServiceServer) Create(ctx context.Context, req *Customer) (*Customer, error)
- func (*UnimplementedCustomerServiceServer) Delete(ctx context.Context, req *OneCustomerRequest) (*types.Empty, error)
- func (*UnimplementedCustomerServiceServer) Get(ctx context.Context, req *OneCustomerRequest) (*Customer, error)
- func (*UnimplementedCustomerServiceServer) List(ctx context.Context, req *ListCustomerRequest) (*ListCustomerResponse, error)
- func (*UnimplementedCustomerServiceServer) Update(ctx context.Context, req *Customer) (*Customer, error)
- type UnimplementedPlatformServiceServer
- func (*UnimplementedPlatformServiceServer) Create(ctx context.Context, req *Platform) (*Platform, error)
- func (*UnimplementedPlatformServiceServer) Delete(ctx context.Context, req *OnePlatformRequest) (*types.Empty, error)
- func (*UnimplementedPlatformServiceServer) Get(ctx context.Context, req *OnePlatformRequest) (*Platform, error)
- func (*UnimplementedPlatformServiceServer) List(ctx context.Context, req *ListPlatformRequest) (*ListPlatformResponse, error)
- func (*UnimplementedPlatformServiceServer) Update(ctx context.Context, req *Platform) (*Platform, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterCustomerServiceHandler ¶
func RegisterCustomerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCustomerServiceHandler registers the http handlers for service CustomerService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCustomerServiceHandlerClient ¶
func RegisterCustomerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CustomerServiceClient) error
RegisterCustomerServiceHandlerClient registers the http handlers for service CustomerService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CustomerServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CustomerServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CustomerServiceClient" to call the correct interceptors.
func RegisterCustomerServiceHandlerFromEndpoint ¶
func RegisterCustomerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCustomerServiceHandlerFromEndpoint is same as RegisterCustomerServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCustomerServiceHandlerServer ¶
func RegisterCustomerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CustomerServiceServer) error
RegisterCustomerServiceHandlerServer registers the http handlers for service CustomerService to "mux". UnaryRPC :call CustomerServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCustomerServiceHandlerFromEndpoint instead.
func RegisterCustomerServiceServer ¶
func RegisterCustomerServiceServer(s *grpc.Server, srv CustomerServiceServer)
func RegisterPlatformServiceHandler ¶
func RegisterPlatformServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPlatformServiceHandler registers the http handlers for service PlatformService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPlatformServiceHandlerClient ¶
func RegisterPlatformServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PlatformServiceClient) error
RegisterPlatformServiceHandlerClient registers the http handlers for service PlatformService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PlatformServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PlatformServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PlatformServiceClient" to call the correct interceptors.
func RegisterPlatformServiceHandlerFromEndpoint ¶
func RegisterPlatformServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPlatformServiceHandlerFromEndpoint is same as RegisterPlatformServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPlatformServiceHandlerServer ¶
func RegisterPlatformServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PlatformServiceServer) error
RegisterPlatformServiceHandlerServer registers the http handlers for service PlatformService to "mux". UnaryRPC :call PlatformServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPlatformServiceHandlerFromEndpoint instead.
func RegisterPlatformServiceServer ¶
func RegisterPlatformServiceServer(s *grpc.Server, srv PlatformServiceServer)
Types ¶
type Customer ¶
type Customer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PlatformId string `protobuf:"bytes,2,opt,name=platform_id,json=platformId,proto3" json:"platform_id,omitempty"` FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` MiddleName string `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"` LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,7,opt,name=phone,proto3" json:"phone,omitempty"` Note string `protobuf:"bytes,8,opt,name=note,proto3" json:"note,omitempty"` Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Customer) Descriptor ¶
func (*Customer) GetCreatedAt ¶
func (*Customer) GetFirstName ¶
func (*Customer) GetLastName ¶
func (*Customer) GetMiddleName ¶
func (*Customer) GetPlatformId ¶
func (*Customer) GetUpdatedAt ¶
func (*Customer) MarshalToSizedBuffer ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) XXX_DiscardUnknown ¶
func (m *Customer) XXX_DiscardUnknown()
func (*Customer) XXX_Marshal ¶
func (*Customer) XXX_MessageName ¶
func (*Customer) XXX_Unmarshal ¶
type CustomerServiceClient ¶
type CustomerServiceClient interface { Get(ctx context.Context, in *OneCustomerRequest, opts ...grpc.CallOption) (*Customer, error) Create(ctx context.Context, in *Customer, opts ...grpc.CallOption) (*Customer, error) Update(ctx context.Context, in *Customer, opts ...grpc.CallOption) (*Customer, error) Delete(ctx context.Context, in *OneCustomerRequest, opts ...grpc.CallOption) (*types.Empty, error) List(ctx context.Context, in *ListCustomerRequest, opts ...grpc.CallOption) (*ListCustomerResponse, error) }
CustomerServiceClient is the client API for CustomerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCustomerServiceClient ¶
func NewCustomerServiceClient(cc *grpc.ClientConn) CustomerServiceClient
type CustomerServiceServer ¶
type CustomerServiceServer interface { Get(context.Context, *OneCustomerRequest) (*Customer, error) Create(context.Context, *Customer) (*Customer, error) Update(context.Context, *Customer) (*Customer, error) Delete(context.Context, *OneCustomerRequest) (*types.Empty, error) List(context.Context, *ListCustomerRequest) (*ListCustomerResponse, error) }
CustomerServiceServer is the server API for CustomerService service.
type ListCustomerRequest ¶
type ListCustomerRequest struct { PlatformId string `protobuf:"bytes,1,opt,name=platform_id,json=platformId,proto3" json:"platform_id,omitempty"` Page uint32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListCustomerRequest) Descriptor ¶
func (*ListCustomerRequest) Descriptor() ([]byte, []int)
func (*ListCustomerRequest) GetLimit ¶
func (m *ListCustomerRequest) GetLimit() uint32
func (*ListCustomerRequest) GetPage ¶
func (m *ListCustomerRequest) GetPage() uint32
func (*ListCustomerRequest) GetPlatformId ¶
func (m *ListCustomerRequest) GetPlatformId() string
func (*ListCustomerRequest) Marshal ¶
func (m *ListCustomerRequest) Marshal() (dAtA []byte, err error)
func (*ListCustomerRequest) MarshalTo ¶
func (m *ListCustomerRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListCustomerRequest) MarshalToSizedBuffer ¶
func (m *ListCustomerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListCustomerRequest) ProtoMessage ¶
func (*ListCustomerRequest) ProtoMessage()
func (*ListCustomerRequest) Reset ¶
func (m *ListCustomerRequest) Reset()
func (*ListCustomerRequest) Size ¶
func (m *ListCustomerRequest) Size() (n int)
func (*ListCustomerRequest) String ¶
func (m *ListCustomerRequest) String() string
func (*ListCustomerRequest) Unmarshal ¶
func (m *ListCustomerRequest) Unmarshal(dAtA []byte) error
func (*ListCustomerRequest) Validate ¶
func (this *ListCustomerRequest) Validate() error
func (*ListCustomerRequest) XXX_DiscardUnknown ¶
func (m *ListCustomerRequest) XXX_DiscardUnknown()
func (*ListCustomerRequest) XXX_Marshal ¶
func (m *ListCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCustomerRequest) XXX_Merge ¶
func (m *ListCustomerRequest) XXX_Merge(src proto.Message)
func (*ListCustomerRequest) XXX_MessageName ¶
func (*ListCustomerRequest) XXX_MessageName() string
func (*ListCustomerRequest) XXX_Size ¶
func (m *ListCustomerRequest) XXX_Size() int
func (*ListCustomerRequest) XXX_Unmarshal ¶
func (m *ListCustomerRequest) XXX_Unmarshal(b []byte) error
type ListCustomerResponse ¶
type ListCustomerResponse struct { Items []*Customer `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` MaxPage uint32 `protobuf:"varint,2,opt,name=max_page,json=maxPage,proto3" json:"max_page,omitempty"` TotalCount uint32 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` Page uint32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` Limit uint32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListCustomerResponse) Descriptor ¶
func (*ListCustomerResponse) Descriptor() ([]byte, []int)
func (*ListCustomerResponse) GetItems ¶
func (m *ListCustomerResponse) GetItems() []*Customer
func (*ListCustomerResponse) GetLimit ¶
func (m *ListCustomerResponse) GetLimit() uint32
func (*ListCustomerResponse) GetMaxPage ¶
func (m *ListCustomerResponse) GetMaxPage() uint32
func (*ListCustomerResponse) GetPage ¶
func (m *ListCustomerResponse) GetPage() uint32
func (*ListCustomerResponse) GetTotalCount ¶
func (m *ListCustomerResponse) GetTotalCount() uint32
func (*ListCustomerResponse) Marshal ¶
func (m *ListCustomerResponse) Marshal() (dAtA []byte, err error)
func (*ListCustomerResponse) MarshalTo ¶
func (m *ListCustomerResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListCustomerResponse) MarshalToSizedBuffer ¶
func (m *ListCustomerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListCustomerResponse) ProtoMessage ¶
func (*ListCustomerResponse) ProtoMessage()
func (*ListCustomerResponse) Reset ¶
func (m *ListCustomerResponse) Reset()
func (*ListCustomerResponse) Size ¶
func (m *ListCustomerResponse) Size() (n int)
func (*ListCustomerResponse) String ¶
func (m *ListCustomerResponse) String() string
func (*ListCustomerResponse) Unmarshal ¶
func (m *ListCustomerResponse) Unmarshal(dAtA []byte) error
func (*ListCustomerResponse) Validate ¶
func (this *ListCustomerResponse) Validate() error
func (*ListCustomerResponse) XXX_DiscardUnknown ¶
func (m *ListCustomerResponse) XXX_DiscardUnknown()
func (*ListCustomerResponse) XXX_Marshal ¶
func (m *ListCustomerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCustomerResponse) XXX_Merge ¶
func (m *ListCustomerResponse) XXX_Merge(src proto.Message)
func (*ListCustomerResponse) XXX_MessageName ¶
func (*ListCustomerResponse) XXX_MessageName() string
func (*ListCustomerResponse) XXX_Size ¶
func (m *ListCustomerResponse) XXX_Size() int
func (*ListCustomerResponse) XXX_Unmarshal ¶
func (m *ListCustomerResponse) XXX_Unmarshal(b []byte) error
type ListPlatformRequest ¶
type ListPlatformRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Page uint32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListPlatformRequest) Descriptor ¶
func (*ListPlatformRequest) Descriptor() ([]byte, []int)
func (*ListPlatformRequest) GetLimit ¶
func (m *ListPlatformRequest) GetLimit() uint32
func (*ListPlatformRequest) GetPage ¶
func (m *ListPlatformRequest) GetPage() uint32
func (*ListPlatformRequest) GetType ¶
func (m *ListPlatformRequest) GetType() string
func (*ListPlatformRequest) Marshal ¶
func (m *ListPlatformRequest) Marshal() (dAtA []byte, err error)
func (*ListPlatformRequest) MarshalTo ¶
func (m *ListPlatformRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListPlatformRequest) MarshalToSizedBuffer ¶
func (m *ListPlatformRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListPlatformRequest) ProtoMessage ¶
func (*ListPlatformRequest) ProtoMessage()
func (*ListPlatformRequest) Reset ¶
func (m *ListPlatformRequest) Reset()
func (*ListPlatformRequest) Size ¶
func (m *ListPlatformRequest) Size() (n int)
func (*ListPlatformRequest) String ¶
func (m *ListPlatformRequest) String() string
func (*ListPlatformRequest) Unmarshal ¶
func (m *ListPlatformRequest) Unmarshal(dAtA []byte) error
func (*ListPlatformRequest) Validate ¶
func (this *ListPlatformRequest) Validate() error
func (*ListPlatformRequest) XXX_DiscardUnknown ¶
func (m *ListPlatformRequest) XXX_DiscardUnknown()
func (*ListPlatformRequest) XXX_Marshal ¶
func (m *ListPlatformRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPlatformRequest) XXX_Merge ¶
func (m *ListPlatformRequest) XXX_Merge(src proto.Message)
func (*ListPlatformRequest) XXX_MessageName ¶
func (*ListPlatformRequest) XXX_MessageName() string
func (*ListPlatformRequest) XXX_Size ¶
func (m *ListPlatformRequest) XXX_Size() int
func (*ListPlatformRequest) XXX_Unmarshal ¶
func (m *ListPlatformRequest) XXX_Unmarshal(b []byte) error
type ListPlatformResponse ¶
type ListPlatformResponse struct { Items []*Platform `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` MaxPage uint32 `protobuf:"varint,2,opt,name=max_page,json=maxPage,proto3" json:"max_page,omitempty"` TotalCount uint32 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` Page uint32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` Limit uint32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListPlatformResponse) Descriptor ¶
func (*ListPlatformResponse) Descriptor() ([]byte, []int)
func (*ListPlatformResponse) GetItems ¶
func (m *ListPlatformResponse) GetItems() []*Platform
func (*ListPlatformResponse) GetLimit ¶
func (m *ListPlatformResponse) GetLimit() uint32
func (*ListPlatformResponse) GetMaxPage ¶
func (m *ListPlatformResponse) GetMaxPage() uint32
func (*ListPlatformResponse) GetPage ¶
func (m *ListPlatformResponse) GetPage() uint32
func (*ListPlatformResponse) GetTotalCount ¶
func (m *ListPlatformResponse) GetTotalCount() uint32
func (*ListPlatformResponse) Marshal ¶
func (m *ListPlatformResponse) Marshal() (dAtA []byte, err error)
func (*ListPlatformResponse) MarshalTo ¶
func (m *ListPlatformResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListPlatformResponse) MarshalToSizedBuffer ¶
func (m *ListPlatformResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListPlatformResponse) ProtoMessage ¶
func (*ListPlatformResponse) ProtoMessage()
func (*ListPlatformResponse) Reset ¶
func (m *ListPlatformResponse) Reset()
func (*ListPlatformResponse) Size ¶
func (m *ListPlatformResponse) Size() (n int)
func (*ListPlatformResponse) String ¶
func (m *ListPlatformResponse) String() string
func (*ListPlatformResponse) Unmarshal ¶
func (m *ListPlatformResponse) Unmarshal(dAtA []byte) error
func (*ListPlatformResponse) Validate ¶
func (this *ListPlatformResponse) Validate() error
func (*ListPlatformResponse) XXX_DiscardUnknown ¶
func (m *ListPlatformResponse) XXX_DiscardUnknown()
func (*ListPlatformResponse) XXX_Marshal ¶
func (m *ListPlatformResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPlatformResponse) XXX_Merge ¶
func (m *ListPlatformResponse) XXX_Merge(src proto.Message)
func (*ListPlatformResponse) XXX_MessageName ¶
func (*ListPlatformResponse) XXX_MessageName() string
func (*ListPlatformResponse) XXX_Size ¶
func (m *ListPlatformResponse) XXX_Size() int
func (*ListPlatformResponse) XXX_Unmarshal ¶
func (m *ListPlatformResponse) XXX_Unmarshal(b []byte) error
type OneCustomerRequest ¶
type OneCustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PlatformId string `protobuf:"bytes,2,opt,name=platform_id,json=platformId,proto3" json:"platform_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OneCustomerRequest) Descriptor ¶
func (*OneCustomerRequest) Descriptor() ([]byte, []int)
func (*OneCustomerRequest) GetId ¶
func (m *OneCustomerRequest) GetId() string
func (*OneCustomerRequest) GetPlatformId ¶
func (m *OneCustomerRequest) GetPlatformId() string
func (*OneCustomerRequest) Marshal ¶
func (m *OneCustomerRequest) Marshal() (dAtA []byte, err error)
func (*OneCustomerRequest) MarshalTo ¶
func (m *OneCustomerRequest) MarshalTo(dAtA []byte) (int, error)
func (*OneCustomerRequest) MarshalToSizedBuffer ¶
func (m *OneCustomerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OneCustomerRequest) ProtoMessage ¶
func (*OneCustomerRequest) ProtoMessage()
func (*OneCustomerRequest) Reset ¶
func (m *OneCustomerRequest) Reset()
func (*OneCustomerRequest) Size ¶
func (m *OneCustomerRequest) Size() (n int)
func (*OneCustomerRequest) String ¶
func (m *OneCustomerRequest) String() string
func (*OneCustomerRequest) Unmarshal ¶
func (m *OneCustomerRequest) Unmarshal(dAtA []byte) error
func (*OneCustomerRequest) Validate ¶
func (this *OneCustomerRequest) Validate() error
func (*OneCustomerRequest) XXX_DiscardUnknown ¶
func (m *OneCustomerRequest) XXX_DiscardUnknown()
func (*OneCustomerRequest) XXX_Marshal ¶
func (m *OneCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OneCustomerRequest) XXX_Merge ¶
func (m *OneCustomerRequest) XXX_Merge(src proto.Message)
func (*OneCustomerRequest) XXX_MessageName ¶
func (*OneCustomerRequest) XXX_MessageName() string
func (*OneCustomerRequest) XXX_Size ¶
func (m *OneCustomerRequest) XXX_Size() int
func (*OneCustomerRequest) XXX_Unmarshal ¶
func (m *OneCustomerRequest) XXX_Unmarshal(b []byte) error
type OnePlatformRequest ¶
type OnePlatformRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OnePlatformRequest) Descriptor ¶
func (*OnePlatformRequest) Descriptor() ([]byte, []int)
func (*OnePlatformRequest) GetId ¶
func (m *OnePlatformRequest) GetId() string
func (*OnePlatformRequest) Marshal ¶
func (m *OnePlatformRequest) Marshal() (dAtA []byte, err error)
func (*OnePlatformRequest) MarshalTo ¶
func (m *OnePlatformRequest) MarshalTo(dAtA []byte) (int, error)
func (*OnePlatformRequest) MarshalToSizedBuffer ¶
func (m *OnePlatformRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OnePlatformRequest) ProtoMessage ¶
func (*OnePlatformRequest) ProtoMessage()
func (*OnePlatformRequest) Reset ¶
func (m *OnePlatformRequest) Reset()
func (*OnePlatformRequest) Size ¶
func (m *OnePlatformRequest) Size() (n int)
func (*OnePlatformRequest) String ¶
func (m *OnePlatformRequest) String() string
func (*OnePlatformRequest) Unmarshal ¶
func (m *OnePlatformRequest) Unmarshal(dAtA []byte) error
func (*OnePlatformRequest) Validate ¶
func (this *OnePlatformRequest) Validate() error
func (*OnePlatformRequest) XXX_DiscardUnknown ¶
func (m *OnePlatformRequest) XXX_DiscardUnknown()
func (*OnePlatformRequest) XXX_Marshal ¶
func (m *OnePlatformRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OnePlatformRequest) XXX_Merge ¶
func (m *OnePlatformRequest) XXX_Merge(src proto.Message)
func (*OnePlatformRequest) XXX_MessageName ¶
func (*OnePlatformRequest) XXX_MessageName() string
func (*OnePlatformRequest) XXX_Size ¶
func (m *OnePlatformRequest) XXX_Size() int
func (*OnePlatformRequest) XXX_Unmarshal ¶
func (m *OnePlatformRequest) XXX_Unmarshal(b []byte) error
type Platform ¶
type Platform struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` ApiUrl string `protobuf:"bytes,4,opt,name=api_url,json=apiUrl,proto3" json:"api_url,omitempty"` AccessToken string `protobuf:"bytes,5,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` AccessTokenSecret string `protobuf:"bytes,6,opt,name=access_token_secret,json=accessTokenSecret,proto3" json:"access_token_secret,omitempty"` CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Platform) Descriptor ¶
func (*Platform) GetAccessToken ¶
func (*Platform) GetAccessTokenSecret ¶
func (*Platform) GetCreatedAt ¶
func (*Platform) GetUpdatedAt ¶
func (*Platform) MarshalToSizedBuffer ¶
func (*Platform) ProtoMessage ¶
func (*Platform) ProtoMessage()
func (*Platform) XXX_DiscardUnknown ¶
func (m *Platform) XXX_DiscardUnknown()
func (*Platform) XXX_Marshal ¶
func (*Platform) XXX_MessageName ¶
func (*Platform) XXX_Unmarshal ¶
type PlatformServiceClient ¶
type PlatformServiceClient interface { Get(ctx context.Context, in *OnePlatformRequest, opts ...grpc.CallOption) (*Platform, error) Create(ctx context.Context, in *Platform, opts ...grpc.CallOption) (*Platform, error) Update(ctx context.Context, in *Platform, opts ...grpc.CallOption) (*Platform, error) Delete(ctx context.Context, in *OnePlatformRequest, opts ...grpc.CallOption) (*types.Empty, error) List(ctx context.Context, in *ListPlatformRequest, opts ...grpc.CallOption) (*ListPlatformResponse, error) }
PlatformServiceClient is the client API for PlatformService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPlatformServiceClient ¶
func NewPlatformServiceClient(cc *grpc.ClientConn) PlatformServiceClient
type PlatformServiceServer ¶
type PlatformServiceServer interface { Get(context.Context, *OnePlatformRequest) (*Platform, error) Create(context.Context, *Platform) (*Platform, error) Update(context.Context, *Platform) (*Platform, error) Delete(context.Context, *OnePlatformRequest) (*types.Empty, error) List(context.Context, *ListPlatformRequest) (*ListPlatformResponse, error) }
PlatformServiceServer is the server API for PlatformService service.
type UnimplementedCustomerServiceServer ¶
type UnimplementedCustomerServiceServer struct { }
UnimplementedCustomerServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCustomerServiceServer) Delete ¶
func (*UnimplementedCustomerServiceServer) Delete(ctx context.Context, req *OneCustomerRequest) (*types.Empty, error)
func (*UnimplementedCustomerServiceServer) Get ¶
func (*UnimplementedCustomerServiceServer) Get(ctx context.Context, req *OneCustomerRequest) (*Customer, error)
func (*UnimplementedCustomerServiceServer) List ¶
func (*UnimplementedCustomerServiceServer) List(ctx context.Context, req *ListCustomerRequest) (*ListCustomerResponse, error)
type UnimplementedPlatformServiceServer ¶
type UnimplementedPlatformServiceServer struct { }
UnimplementedPlatformServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedPlatformServiceServer) Delete ¶
func (*UnimplementedPlatformServiceServer) Delete(ctx context.Context, req *OnePlatformRequest) (*types.Empty, error)
func (*UnimplementedPlatformServiceServer) Get ¶
func (*UnimplementedPlatformServiceServer) Get(ctx context.Context, req *OnePlatformRequest) (*Platform, error)
func (*UnimplementedPlatformServiceServer) List ¶
func (*UnimplementedPlatformServiceServer) List(ctx context.Context, req *ListPlatformRequest) (*ListPlatformResponse, error)