Documentation ¶
Overview ¶
Package api is a generated blademaster stub package. This code was generated with kratos/tool/protobuf/protoc-gen-bm v0.1.
package 命名使用 {appid}.{version} 的方式, version 形如 v1, v2 ..
It is generated from these files:
api.proto
Index ¶
- Constants
- Variables
- func Init()
- func RegisterLicensingBMServer(e *bm.Engine, server LicensingBMServer)
- func RegisterLicensingServer(s *grpc.Server, srv LicensingServer)
- type GetLicenseReq
- func (*GetLicenseReq) Descriptor() ([]byte, []int)
- func (m *GetLicenseReq) Marshal() (dAtA []byte, err error)
- func (m *GetLicenseReq) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLicenseReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLicenseReq) ProtoMessage()
- func (m *GetLicenseReq) Reset()
- func (m *GetLicenseReq) Size() (n int)
- func (m *GetLicenseReq) String() string
- func (m *GetLicenseReq) Unmarshal(dAtA []byte) error
- func (m *GetLicenseReq) XXX_DiscardUnknown()
- func (m *GetLicenseReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLicenseReq) XXX_Merge(src proto.Message)
- func (m *GetLicenseReq) XXX_Size() int
- func (m *GetLicenseReq) XXX_Unmarshal(b []byte) error
- type GetLicensesByOrgReq
- func (*GetLicensesByOrgReq) Descriptor() ([]byte, []int)
- func (m *GetLicensesByOrgReq) Marshal() (dAtA []byte, err error)
- func (m *GetLicensesByOrgReq) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLicensesByOrgReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLicensesByOrgReq) ProtoMessage()
- func (m *GetLicensesByOrgReq) Reset()
- func (m *GetLicensesByOrgReq) Size() (n int)
- func (m *GetLicensesByOrgReq) String() string
- func (m *GetLicensesByOrgReq) Unmarshal(dAtA []byte) error
- func (m *GetLicensesByOrgReq) XXX_DiscardUnknown()
- func (m *GetLicensesByOrgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLicensesByOrgReq) XXX_Merge(src proto.Message)
- func (m *GetLicensesByOrgReq) XXX_Size() int
- func (m *GetLicensesByOrgReq) XXX_Unmarshal(b []byte) error
- type License
- func (*License) Descriptor() ([]byte, []int)
- func (m *License) Marshal() (dAtA []byte, err error)
- func (m *License) MarshalTo(dAtA []byte) (int, error)
- func (m *License) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*License) ProtoMessage()
- func (m *License) Reset()
- func (m *License) Size() (n int)
- func (m *License) String() string
- func (m *License) Unmarshal(dAtA []byte) error
- func (m *License) XXX_DiscardUnknown()
- func (m *License) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *License) XXX_Merge(src proto.Message)
- func (m *License) XXX_Size() int
- func (m *License) XXX_Unmarshal(b []byte) error
- type Licenses
- func (*Licenses) Descriptor() ([]byte, []int)
- func (m *Licenses) Marshal() (dAtA []byte, err error)
- func (m *Licenses) MarshalTo(dAtA []byte) (int, error)
- func (m *Licenses) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Licenses) ProtoMessage()
- func (m *Licenses) Reset()
- func (m *Licenses) Size() (n int)
- func (m *Licenses) String() string
- func (m *Licenses) Unmarshal(dAtA []byte) error
- func (m *Licenses) XXX_DiscardUnknown()
- func (m *Licenses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Licenses) XXX_Merge(src proto.Message)
- func (m *Licenses) XXX_Size() int
- func (m *Licenses) XXX_Unmarshal(b []byte) error
- type LicensingBMServer
- type LicensingClient
- type LicensingServer
- type UnimplementedLicensingServer
- func (*UnimplementedLicensingServer) AddLicense(ctx context.Context, req *License) (*empty.Empty, error)
- func (*UnimplementedLicensingServer) DeleteLicense(ctx context.Context, req *GetLicenseReq) (*empty.Empty, error)
- func (*UnimplementedLicensingServer) GetLicense(ctx context.Context, req *GetLicenseReq) (*License, error)
- func (*UnimplementedLicensingServer) GetLicensesByOrg(ctx context.Context, req *GetLicensesByOrgReq) (*Licenses, error)
- func (*UnimplementedLicensingServer) Ping(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (*UnimplementedLicensingServer) UpdateLicense(ctx context.Context, req *License) (*empty.Empty, error)
Constants ¶
const AppID = "licensing.service"
AppID .
Variables ¶
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") )
var PathLicensingAddLicense = "/v1/license"
var PathLicensingDeleteLicense = "/v1/license"
var PathLicensingGetLicense = "/v1/license"
var PathLicensingGetLicensesByOrg = "/v1/licenses"
var PathLicensingPing = "/eagle.licensing.v1.Licensing/Ping"
var PathLicensingUpdateLicense = "/v1/license"
Functions ¶
func RegisterLicensingBMServer ¶
func RegisterLicensingBMServer(e *bm.Engine, server LicensingBMServer)
RegisterLicensingBMServer Register the blademaster route
func RegisterLicensingServer ¶
func RegisterLicensingServer(s *grpc.Server, srv LicensingServer)
Types ¶
type GetLicenseReq ¶
type GetLicenseReq struct { OrganizationId string `protobuf:"bytes,1,opt,name=organizationId,proto3" json:"organizationId,omitempty" form:"organizationId" validate:"required"` LicenseId string `protobuf:"bytes,2,opt,name=licenseId,proto3" json:"licenseId,omitempty" form:"licenseId" validate:"required"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetLicenseReq) Descriptor ¶
func (*GetLicenseReq) Descriptor() ([]byte, []int)
func (*GetLicenseReq) Marshal ¶
func (m *GetLicenseReq) Marshal() (dAtA []byte, err error)
func (*GetLicenseReq) MarshalToSizedBuffer ¶
func (m *GetLicenseReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLicenseReq) ProtoMessage ¶
func (*GetLicenseReq) ProtoMessage()
func (*GetLicenseReq) Reset ¶
func (m *GetLicenseReq) Reset()
func (*GetLicenseReq) Size ¶
func (m *GetLicenseReq) Size() (n int)
func (*GetLicenseReq) String ¶
func (m *GetLicenseReq) String() string
func (*GetLicenseReq) Unmarshal ¶
func (m *GetLicenseReq) Unmarshal(dAtA []byte) error
func (*GetLicenseReq) XXX_DiscardUnknown ¶
func (m *GetLicenseReq) XXX_DiscardUnknown()
func (*GetLicenseReq) XXX_Marshal ¶
func (m *GetLicenseReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLicenseReq) XXX_Merge ¶
func (m *GetLicenseReq) XXX_Merge(src proto.Message)
func (*GetLicenseReq) XXX_Size ¶
func (m *GetLicenseReq) XXX_Size() int
func (*GetLicenseReq) XXX_Unmarshal ¶
func (m *GetLicenseReq) XXX_Unmarshal(b []byte) error
type GetLicensesByOrgReq ¶
type GetLicensesByOrgReq struct { OrganizationId string `protobuf:"bytes,1,opt,name=organizationId,proto3" json:"organizationId,omitempty" form:"organizationId" validate:"required"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetLicensesByOrgReq) Descriptor ¶
func (*GetLicensesByOrgReq) Descriptor() ([]byte, []int)
func (*GetLicensesByOrgReq) Marshal ¶
func (m *GetLicensesByOrgReq) Marshal() (dAtA []byte, err error)
func (*GetLicensesByOrgReq) MarshalTo ¶
func (m *GetLicensesByOrgReq) MarshalTo(dAtA []byte) (int, error)
func (*GetLicensesByOrgReq) MarshalToSizedBuffer ¶
func (m *GetLicensesByOrgReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLicensesByOrgReq) ProtoMessage ¶
func (*GetLicensesByOrgReq) ProtoMessage()
func (*GetLicensesByOrgReq) Reset ¶
func (m *GetLicensesByOrgReq) Reset()
func (*GetLicensesByOrgReq) Size ¶
func (m *GetLicensesByOrgReq) Size() (n int)
func (*GetLicensesByOrgReq) String ¶
func (m *GetLicensesByOrgReq) String() string
func (*GetLicensesByOrgReq) Unmarshal ¶
func (m *GetLicensesByOrgReq) Unmarshal(dAtA []byte) error
func (*GetLicensesByOrgReq) XXX_DiscardUnknown ¶
func (m *GetLicensesByOrgReq) XXX_DiscardUnknown()
func (*GetLicensesByOrgReq) XXX_Marshal ¶
func (m *GetLicensesByOrgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLicensesByOrgReq) XXX_Merge ¶
func (m *GetLicensesByOrgReq) XXX_Merge(src proto.Message)
func (*GetLicensesByOrgReq) XXX_Size ¶
func (m *GetLicensesByOrgReq) XXX_Size() int
func (*GetLicensesByOrgReq) XXX_Unmarshal ¶
func (m *GetLicensesByOrgReq) XXX_Unmarshal(b []byte) error
type License ¶
type License struct { LicenseId string `protobuf:"bytes,1,opt,name=licenseId,proto3" json:"licenseId,omitempty" ddb:"license_id"` OrganizationId string `protobuf:"bytes,2,opt,name=organizationId,proto3" json:"organizationId,omitempty" ddb:"organization_id"` LicenseType string `protobuf:"bytes,3,opt,name=licenseType,proto3" json:"licenseType,omitempty" ddb:"license_type"` ProduceName string `protobuf:"bytes,4,opt,name=produceName,proto3" json:"produceName,omitempty" ddb:"product_name"` LicenseMax int32 `protobuf:"varint,5,opt,name=licenseMax,proto3" json:"licenseMax,omitempty" ddb:"license_max"` LicenseAllocated int32 `protobuf:"varint,6,opt,name=licenseAllocated,proto3" json:"licenseAllocated,omitempty" ddb:"license_allocated"` Comment string `protobuf:"bytes,7,opt,name=comment,proto3" json:"comment,omitempty" ddb:"comment"` Organization *api.Organization `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*License) Descriptor ¶
func (*License) MarshalToSizedBuffer ¶
func (*License) ProtoMessage ¶
func (*License) ProtoMessage()
func (*License) XXX_DiscardUnknown ¶
func (m *License) XXX_DiscardUnknown()
func (*License) XXX_Marshal ¶
func (*License) XXX_Unmarshal ¶
type Licenses ¶
type Licenses struct { List []*License `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Licenses) Descriptor ¶
func (*Licenses) MarshalToSizedBuffer ¶
func (*Licenses) ProtoMessage ¶
func (*Licenses) ProtoMessage()
func (*Licenses) XXX_DiscardUnknown ¶
func (m *Licenses) XXX_DiscardUnknown()
func (*Licenses) XXX_Marshal ¶
func (*Licenses) XXX_Unmarshal ¶
type LicensingBMServer ¶
type LicensingBMServer interface { Ping(ctx context.Context, req *google_protobuf1.Empty) (resp *google_protobuf1.Empty, err error) GetLicensesByOrg(ctx context.Context, req *GetLicensesByOrgReq) (resp *Licenses, err error) GetLicense(ctx context.Context, req *GetLicenseReq) (resp *License, err error) AddLicense(ctx context.Context, req *License) (resp *google_protobuf1.Empty, err error) UpdateLicense(ctx context.Context, req *License) (resp *google_protobuf1.Empty, err error) DeleteLicense(ctx context.Context, req *GetLicenseReq) (resp *google_protobuf1.Empty, err error) }
LicensingBMServer is the server API for Licensing service.
var LicensingSvc LicensingBMServer
type LicensingClient ¶
type LicensingClient interface { Ping(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) GetLicensesByOrg(ctx context.Context, in *GetLicensesByOrgReq, opts ...grpc.CallOption) (*Licenses, error) GetLicense(ctx context.Context, in *GetLicenseReq, opts ...grpc.CallOption) (*License, error) AddLicense(ctx context.Context, in *License, opts ...grpc.CallOption) (*empty.Empty, error) UpdateLicense(ctx context.Context, in *License, opts ...grpc.CallOption) (*empty.Empty, error) DeleteLicense(ctx context.Context, in *GetLicenseReq, opts ...grpc.CallOption) (*empty.Empty, error) }
LicensingClient is the client API for Licensing service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (LicensingClient, error)
NewClient new grpc client
func NewLicensingClient ¶
func NewLicensingClient(cc *grpc.ClientConn) LicensingClient
type LicensingServer ¶
type LicensingServer interface { Ping(context.Context, *empty.Empty) (*empty.Empty, error) GetLicensesByOrg(context.Context, *GetLicensesByOrgReq) (*Licenses, error) GetLicense(context.Context, *GetLicenseReq) (*License, error) AddLicense(context.Context, *License) (*empty.Empty, error) UpdateLicense(context.Context, *License) (*empty.Empty, error) DeleteLicense(context.Context, *GetLicenseReq) (*empty.Empty, error) }
LicensingServer is the server API for Licensing service.
type UnimplementedLicensingServer ¶
type UnimplementedLicensingServer struct { }
UnimplementedLicensingServer can be embedded to have forward compatible implementations.
func (*UnimplementedLicensingServer) AddLicense ¶
func (*UnimplementedLicensingServer) DeleteLicense ¶
func (*UnimplementedLicensingServer) DeleteLicense(ctx context.Context, req *GetLicenseReq) (*empty.Empty, error)
func (*UnimplementedLicensingServer) GetLicense ¶
func (*UnimplementedLicensingServer) GetLicense(ctx context.Context, req *GetLicenseReq) (*License, error)
func (*UnimplementedLicensingServer) GetLicensesByOrg ¶
func (*UnimplementedLicensingServer) GetLicensesByOrg(ctx context.Context, req *GetLicensesByOrgReq) (*Licenses, error)