api

package
v0.0.0-...-d45e184 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 18 Imported by: 0

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

View Source
const AppID = "licensing.service"

AppID .

Variables

View Source
var (
	ErrInvalidLengthApi        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group")
)
View Source
var PathLicensingAddLicense = "/v1/license"
View Source
var PathLicensingDeleteLicense = "/v1/license"
View Source
var PathLicensingGetLicense = "/v1/license"
View Source
var PathLicensingGetLicensesByOrg = "/v1/licenses"
View Source
var PathLicensingPing = "/eagle.licensing.v1.Licensing/Ping"
View Source
var PathLicensingUpdateLicense = "/v1/license"

Functions

func Init

func Init()

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) MarshalTo

func (m *GetLicenseReq) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*License) Marshal

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

func (*License) MarshalTo

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

func (*License) MarshalToSizedBuffer

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

func (*License) ProtoMessage

func (*License) ProtoMessage()

func (*License) Reset

func (m *License) Reset()

func (*License) Size

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

func (*License) String

func (m *License) String() string

func (*License) Unmarshal

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

func (*License) XXX_DiscardUnknown

func (m *License) XXX_DiscardUnknown()

func (*License) XXX_Marshal

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

func (*License) XXX_Merge

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

func (*License) XXX_Size

func (m *License) XXX_Size() int

func (*License) XXX_Unmarshal

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

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

func (*Licenses) Marshal

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

func (*Licenses) MarshalTo

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

func (*Licenses) MarshalToSizedBuffer

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

func (*Licenses) ProtoMessage

func (*Licenses) ProtoMessage()

func (*Licenses) Reset

func (m *Licenses) Reset()

func (*Licenses) Size

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

func (*Licenses) String

func (m *Licenses) String() string

func (*Licenses) Unmarshal

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

func (*Licenses) XXX_DiscardUnknown

func (m *Licenses) XXX_DiscardUnknown()

func (*Licenses) XXX_Marshal

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

func (*Licenses) XXX_Merge

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

func (*Licenses) XXX_Size

func (m *Licenses) XXX_Size() int

func (*Licenses) XXX_Unmarshal

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

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) GetLicense

func (*UnimplementedLicensingServer) GetLicensesByOrg

func (*UnimplementedLicensingServer) Ping

func (*UnimplementedLicensingServer) UpdateLicense

func (*UnimplementedLicensingServer) UpdateLicense(ctx context.Context, req *License) (*empty.Empty, error)

Jump to

Keyboard shortcuts

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