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: 19 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 = "organizations.service"

AppID . const AppID = "127.0.0.1:9000" var target = fmt.Sprintf("direct://default/%s", 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 PathOrganizationSvcAddOrganization = "/organization"
View Source
var PathOrganizationSvcDeleteOrganization = "/organization"
View Source
var PathOrganizationSvcGetOrganization = "/organization"
View Source
var PathOrganizationSvcPing = "/eagle.organization.v1.OrganizationSvc/Ping"
View Source
var PathOrganizationSvcUpdateOrganization = "/organization"

Functions

func Init

func Init()

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

func (*GetOrgReq) Marshal

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

func (*GetOrgReq) MarshalTo

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

func (*GetOrgReq) MarshalToSizedBuffer

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

func (*GetOrgReq) ProtoMessage

func (*GetOrgReq) ProtoMessage()

func (*GetOrgReq) Reset

func (m *GetOrgReq) Reset()

func (*GetOrgReq) Size

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

func (*GetOrgReq) String

func (m *GetOrgReq) String() string

func (*GetOrgReq) Unmarshal

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

func (*GetOrgReq) XXX_DiscardUnknown

func (m *GetOrgReq) XXX_DiscardUnknown()

func (*GetOrgReq) XXX_Marshal

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

func (*GetOrgReq) XXX_Merge

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

func (*GetOrgReq) XXX_Size

func (m *GetOrgReq) XXX_Size() int

func (*GetOrgReq) XXX_Unmarshal

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

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

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

func (*UnimplementedOrganizationSvcServer) DeleteOrganization(ctx context.Context, req *Organization) (*empty.Empty, error)

func (*UnimplementedOrganizationSvcServer) GetOrganization

func (*UnimplementedOrganizationSvcServer) Ping

func (*UnimplementedOrganizationSvcServer) UpdateOrganization

func (*UnimplementedOrganizationSvcServer) UpdateOrganization(ctx context.Context, req *Organization) (*empty.Empty, error)

Jump to

Keyboard shortcuts

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