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 RegisterOrganizationSvcBMServer(e *bm.Engine, server OrganizationSvcBMServer)
- func RegisterOrganizationSvcServer(s *grpc.Server, srv OrganizationSvcServer)
- type GetOrgReq
- func (*GetOrgReq) Descriptor() ([]byte, []int)
- func (m *GetOrgReq) Marshal() (dAtA []byte, err error)
- func (m *GetOrgReq) MarshalTo(dAtA []byte) (int, error)
- func (m *GetOrgReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetOrgReq) ProtoMessage()
- func (m *GetOrgReq) Reset()
- func (m *GetOrgReq) Size() (n int)
- func (m *GetOrgReq) String() string
- func (m *GetOrgReq) Unmarshal(dAtA []byte) error
- func (m *GetOrgReq) XXX_DiscardUnknown()
- func (m *GetOrgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetOrgReq) XXX_Merge(src proto.Message)
- func (m *GetOrgReq) XXX_Size() int
- func (m *GetOrgReq) XXX_Unmarshal(b []byte) error
- type Organization
- func (*Organization) Descriptor() ([]byte, []int)
- func (m *Organization) Marshal() (dAtA []byte, err error)
- func (m *Organization) MarshalTo(dAtA []byte) (int, error)
- func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Organization) ProtoMessage()
- func (m *Organization) Reset()
- func (m *Organization) Size() (n int)
- func (m *Organization) String() string
- func (m *Organization) Unmarshal(dAtA []byte) error
- func (m *Organization) XXX_DiscardUnknown()
- func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Organization) XXX_Merge(src proto.Message)
- func (m *Organization) XXX_Size() int
- func (m *Organization) XXX_Unmarshal(b []byte) error
- type OrganizationSvcBMServer
- type OrganizationSvcClient
- type OrganizationSvcServer
- type UnimplementedOrganizationSvcServer
- func (*UnimplementedOrganizationSvcServer) AddOrganization(ctx context.Context, req *Organization) (*empty.Empty, error)
- func (*UnimplementedOrganizationSvcServer) DeleteOrganization(ctx context.Context, req *Organization) (*empty.Empty, error)
- func (*UnimplementedOrganizationSvcServer) GetOrganization(ctx context.Context, req *GetOrgReq) (*Organization, error)
- func (*UnimplementedOrganizationSvcServer) Ping(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (*UnimplementedOrganizationSvcServer) UpdateOrganization(ctx context.Context, req *Organization) (*empty.Empty, error)
Constants ¶
const AppID = "organizations.service"
AppID . const AppID = "127.0.0.1:9000" var target = fmt.Sprintf("direct://default/%s", 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 PathOrganizationSvcAddOrganization = "/organization"
var PathOrganizationSvcDeleteOrganization = "/organization"
var PathOrganizationSvcGetOrganization = "/organization"
var PathOrganizationSvcPing = "/eagle.organization.v1.OrganizationSvc/Ping"
var PathOrganizationSvcUpdateOrganization = "/organization"
Functions ¶
func RegisterOrganizationSvcBMServer ¶
func RegisterOrganizationSvcBMServer(e *bm.Engine, server OrganizationSvcBMServer)
RegisterOrganizationSvcBMServer Register the blademaster route
func RegisterOrganizationSvcServer ¶
func RegisterOrganizationSvcServer(s *grpc.Server, srv OrganizationSvcServer)
Types ¶
type GetOrgReq ¶
type GetOrgReq 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 (*GetOrgReq) Descriptor ¶
func (*GetOrgReq) MarshalToSizedBuffer ¶
func (*GetOrgReq) ProtoMessage ¶
func (*GetOrgReq) ProtoMessage()
func (*GetOrgReq) XXX_DiscardUnknown ¶
func (m *GetOrgReq) XXX_DiscardUnknown()
func (*GetOrgReq) XXX_Marshal ¶
func (*GetOrgReq) XXX_Unmarshal ¶
type Organization ¶
type Organization struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" ddb:"organization_id"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" ddb:"name"` ContactName string `protobuf:"bytes,3,opt,name=contactName,proto3" json:"contactName,omitempty" ddb:"contact_name"` ContactEmail string `protobuf:"bytes,4,opt,name=contactEmail,proto3" json:"contactEmail,omitempty" ddb:"contact_email"` ContactPhone string `protobuf:"bytes,5,opt,name=contactPhone,proto3" json:"contactPhone,omitempty" ddb:"contact_phone"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Organization) Descriptor ¶
func (*Organization) Descriptor() ([]byte, []int)
func (*Organization) Marshal ¶
func (m *Organization) Marshal() (dAtA []byte, err error)
func (*Organization) MarshalToSizedBuffer ¶
func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Organization) ProtoMessage ¶
func (*Organization) ProtoMessage()
func (*Organization) Reset ¶
func (m *Organization) Reset()
func (*Organization) Size ¶
func (m *Organization) Size() (n int)
func (*Organization) String ¶
func (m *Organization) String() string
func (*Organization) Unmarshal ¶
func (m *Organization) Unmarshal(dAtA []byte) error
func (*Organization) XXX_DiscardUnknown ¶
func (m *Organization) XXX_DiscardUnknown()
func (*Organization) XXX_Marshal ¶
func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Organization) XXX_Merge ¶
func (m *Organization) XXX_Merge(src proto.Message)
func (*Organization) XXX_Size ¶
func (m *Organization) XXX_Size() int
func (*Organization) XXX_Unmarshal ¶
func (m *Organization) XXX_Unmarshal(b []byte) error
type OrganizationSvcBMServer ¶
type OrganizationSvcBMServer interface { Ping(ctx context.Context, req *google_protobuf1.Empty) (resp *google_protobuf1.Empty, err error) GetOrganization(ctx context.Context, req *GetOrgReq) (resp *Organization, err error) AddOrganization(ctx context.Context, req *Organization) (resp *google_protobuf1.Empty, err error) UpdateOrganization(ctx context.Context, req *Organization) (resp *google_protobuf1.Empty, err error) DeleteOrganization(ctx context.Context, req *Organization) (resp *google_protobuf1.Empty, err error) }
OrganizationSvcBMServer is the server API for OrganizationSvc service.
var OrganizationSvcSvc OrganizationSvcBMServer
type OrganizationSvcClient ¶
type OrganizationSvcClient interface { Ping(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) GetOrganization(ctx context.Context, in *GetOrgReq, opts ...grpc.CallOption) (*Organization, error) AddOrganization(ctx context.Context, in *Organization, opts ...grpc.CallOption) (*empty.Empty, error) UpdateOrganization(ctx context.Context, in *Organization, opts ...grpc.CallOption) (*empty.Empty, error) DeleteOrganization(ctx context.Context, in *Organization, opts ...grpc.CallOption) (*empty.Empty, error) }
OrganizationSvcClient is the client API for OrganizationSvc 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) (OrganizationSvcClient, error)
NewClient new grpc client
func NewOrganizationSvcClient ¶
func NewOrganizationSvcClient(cc *grpc.ClientConn) OrganizationSvcClient
type OrganizationSvcServer ¶
type OrganizationSvcServer interface { Ping(context.Context, *empty.Empty) (*empty.Empty, error) GetOrganization(context.Context, *GetOrgReq) (*Organization, error) AddOrganization(context.Context, *Organization) (*empty.Empty, error) UpdateOrganization(context.Context, *Organization) (*empty.Empty, error) DeleteOrganization(context.Context, *Organization) (*empty.Empty, error) }
OrganizationSvcServer is the server API for OrganizationSvc service.
type UnimplementedOrganizationSvcServer ¶
type UnimplementedOrganizationSvcServer struct { }
UnimplementedOrganizationSvcServer can be embedded to have forward compatible implementations.
func (*UnimplementedOrganizationSvcServer) AddOrganization ¶
func (*UnimplementedOrganizationSvcServer) AddOrganization(ctx context.Context, req *Organization) (*empty.Empty, error)
func (*UnimplementedOrganizationSvcServer) DeleteOrganization ¶
func (*UnimplementedOrganizationSvcServer) DeleteOrganization(ctx context.Context, req *Organization) (*empty.Empty, error)
func (*UnimplementedOrganizationSvcServer) GetOrganization ¶
func (*UnimplementedOrganizationSvcServer) GetOrganization(ctx context.Context, req *GetOrgReq) (*Organization, error)
func (*UnimplementedOrganizationSvcServer) UpdateOrganization ¶
func (*UnimplementedOrganizationSvcServer) UpdateOrganization(ctx context.Context, req *Organization) (*empty.Empty, error)