proto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_app_model_proto protoreflect.FileDescriptor
View Source
var File_app_service_proto protoreflect.FileDescriptor
View Source
var File_service_proto protoreflect.FileDescriptor

Functions

func RegisterAppServiceServer

func RegisterAppServiceServer(s *grpc.Server, srv AppServiceServer)

func RegisterSvcSericeServer

func RegisterSvcSericeServer(s *grpc.Server, srv SvcSericeServer)

Types

type App

type App struct {

	// @inject_tag: json:"id" gorm:"primary_key;AUTO_INCREMENT;default:id;comment:id;size:20;"
	Id int64 `protobuf:"varint,100,opt,name=id,proto3" json:"id,omitempty"`
	// @inject_tag: json:"appId" gorm:"default:appId;comment:appId;size:255;"
	AppId string `protobuf:"bytes,101,opt,name=appId,proto3" json:"appId,omitempty"`
	// @inject_tag: json:"name" gorm:"default:应用名称;comment:应用名称;size:255;"
	Name string `protobuf:"bytes,102,opt,name=name,proto3" json:"name,omitempty"`
	// @inject_tag: json:"createTime" gorm:"default:创建时间;comment:创建时间;"
	CreateTime string `protobuf:"bytes,103,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// @inject_tag: json:"updateTime" gorm:"default:更新时间;comment:更新时间;"
	UpdateTime string `protobuf:"bytes,104,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
	// @inject_tag: json:"createdAt" gorm:"default:创建时间;comment:创建时间;"
	CreatedAt string `protobuf:"bytes,105,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*App) Descriptor deprecated

func (*App) Descriptor() ([]byte, []int)

Deprecated: Use App.ProtoReflect.Descriptor instead.

func (*App) GetAppId

func (x *App) GetAppId() string

func (*App) GetCreateTime

func (x *App) GetCreateTime() string

func (*App) GetCreatedAt

func (x *App) GetCreatedAt() string

func (*App) GetId

func (x *App) GetId() int64

func (*App) GetName

func (x *App) GetName() string

func (*App) GetUpdateTime

func (x *App) GetUpdateTime() string

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) ProtoReflect

func (x *App) ProtoReflect() protoreflect.Message

func (*App) Reset

func (x *App) Reset()

func (*App) String

func (x *App) String() string

type AppServiceClient

type AppServiceClient interface {
	Create(ctx context.Context, in *App, opts ...grpc.CallOption) (*common.Response, error)
	Delete(ctx context.Context, in *App, opts ...grpc.CallOption) (*common.Response, error)
	DeleteById(ctx context.Context, in *App, opts ...grpc.CallOption) (*common.Response, error)
	Update(ctx context.Context, in *App, opts ...grpc.CallOption) (*common.Response, error)
	Find(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.Response, error)
	Lists(ctx context.Context, in *common.Request, opts ...grpc.CallOption) (*common.Responses, error)
}

AppServiceClient is the client API for AppService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAppServiceClient

func NewAppServiceClient(cc grpc.ClientConnInterface) AppServiceClient

type AppServiceServer

type AppServiceServer interface {
	Create(context.Context, *App) (*common.Response, error)
	Delete(context.Context, *App) (*common.Response, error)
	DeleteById(context.Context, *App) (*common.Response, error)
	Update(context.Context, *App) (*common.Response, error)
	Find(context.Context, *emptypb.Empty) (*common.Response, error)
	Lists(context.Context, *common.Request) (*common.Responses, error)
}

AppServiceServer is the server API for AppService service.

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type SvcSericeClient

type SvcSericeClient interface {
	Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}

SvcSericeClient is the client API for SvcSerice service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSvcSericeClient

func NewSvcSericeClient(cc grpc.ClientConnInterface) SvcSericeClient

type SvcSericeServer

type SvcSericeServer interface {
	Ping(context.Context, *Empty) (*Empty, error)
}

SvcSericeServer is the server API for SvcSerice service.

type UnimplementedAppServiceServer

type UnimplementedAppServiceServer struct {
}

UnimplementedAppServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAppServiceServer) Create

func (*UnimplementedAppServiceServer) Delete

func (*UnimplementedAppServiceServer) DeleteById

func (*UnimplementedAppServiceServer) Find

func (*UnimplementedAppServiceServer) Lists

func (*UnimplementedAppServiceServer) Update

type UnimplementedSvcSericeServer

type UnimplementedSvcSericeServer struct {
}

UnimplementedSvcSericeServer can be embedded to have forward compatible implementations.

func (*UnimplementedSvcSericeServer) Ping

Jump to

Keyboard shortcuts

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