gateway

package
v0.0.0-...-9cde8ab Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 20 Imported by: 6

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

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCustomer        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCustomer          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCustomer = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPlatform        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPlatform          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPlatform = fmt.Errorf("proto: unexpected end of group")
)

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) Descriptor() ([]byte, []int)

func (*Customer) GetCreatedAt

func (m *Customer) GetCreatedAt() string

func (*Customer) GetEmail

func (m *Customer) GetEmail() string

func (*Customer) GetFirstName

func (m *Customer) GetFirstName() string

func (*Customer) GetId

func (m *Customer) GetId() string

func (*Customer) GetLastName

func (m *Customer) GetLastName() string

func (*Customer) GetMiddleName

func (m *Customer) GetMiddleName() string

func (*Customer) GetNote

func (m *Customer) GetNote() string

func (*Customer) GetPhone

func (m *Customer) GetPhone() string

func (*Customer) GetPlatformId

func (m *Customer) GetPlatformId() string

func (*Customer) GetStatus

func (m *Customer) GetStatus() string

func (*Customer) GetUpdatedAt

func (m *Customer) GetUpdatedAt() string

func (*Customer) Marshal

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

func (*Customer) MarshalTo

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

func (*Customer) MarshalToSizedBuffer

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

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) Reset

func (m *Customer) Reset()

func (*Customer) Size

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

func (*Customer) String

func (m *Customer) String() string

func (*Customer) Unmarshal

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

func (*Customer) Validate

func (this *Customer) Validate() error

func (*Customer) XXX_DiscardUnknown

func (m *Customer) XXX_DiscardUnknown()

func (*Customer) XXX_Marshal

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

func (*Customer) XXX_Merge

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

func (*Customer) XXX_MessageName

func (*Customer) XXX_MessageName() string

func (*Customer) XXX_Size

func (m *Customer) XXX_Size() int

func (*Customer) XXX_Unmarshal

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

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

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) Descriptor() ([]byte, []int)

func (*Platform) GetAccessToken

func (m *Platform) GetAccessToken() string

func (*Platform) GetAccessTokenSecret

func (m *Platform) GetAccessTokenSecret() string

func (*Platform) GetApiUrl

func (m *Platform) GetApiUrl() string

func (*Platform) GetCreatedAt

func (m *Platform) GetCreatedAt() string

func (*Platform) GetId

func (m *Platform) GetId() string

func (*Platform) GetName

func (m *Platform) GetName() string

func (*Platform) GetType

func (m *Platform) GetType() string

func (*Platform) GetUpdatedAt

func (m *Platform) GetUpdatedAt() string

func (*Platform) Marshal

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

func (*Platform) MarshalTo

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

func (*Platform) MarshalToSizedBuffer

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

func (*Platform) ProtoMessage

func (*Platform) ProtoMessage()

func (*Platform) Reset

func (m *Platform) Reset()

func (*Platform) Size

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

func (*Platform) String

func (m *Platform) String() string

func (*Platform) Unmarshal

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

func (*Platform) Validate

func (this *Platform) Validate() error

func (*Platform) XXX_DiscardUnknown

func (m *Platform) XXX_DiscardUnknown()

func (*Platform) XXX_Marshal

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

func (*Platform) XXX_Merge

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

func (*Platform) XXX_MessageName

func (*Platform) XXX_MessageName() string

func (*Platform) XXX_Size

func (m *Platform) XXX_Size() int

func (*Platform) XXX_Unmarshal

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

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

PlatformServiceServer is the server API for PlatformService service.

type UnimplementedCustomerServiceServer

type UnimplementedCustomerServiceServer struct {
}

UnimplementedCustomerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCustomerServiceServer) Create

func (*UnimplementedCustomerServiceServer) Delete

func (*UnimplementedCustomerServiceServer) Get

func (*UnimplementedCustomerServiceServer) List

func (*UnimplementedCustomerServiceServer) Update

type UnimplementedPlatformServiceServer

type UnimplementedPlatformServiceServer struct {
}

UnimplementedPlatformServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPlatformServiceServer) Create

func (*UnimplementedPlatformServiceServer) Delete

func (*UnimplementedPlatformServiceServer) Get

func (*UnimplementedPlatformServiceServer) List

func (*UnimplementedPlatformServiceServer) Update

Jump to

Keyboard shortcuts

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