2021-09-29 00:10:09 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2021-10-12 07:25:13 +00:00
// versions:
2023-03-19 21:42:21 +00:00
// - protoc-gen-go-grpc v1.2.0
2023-03-19 09:43:57 +00:00
// - protoc v3.21.12
2021-10-12 07:25:13 +00:00
// source: woodpecker.proto
2021-09-29 00:10:09 +00:00
package proto
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc . SupportPackageIsVersion7
// WoodpeckerClient is the client API for Woodpecker service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type WoodpeckerClient interface {
2023-03-19 21:42:21 +00:00
Version ( ctx context . Context , in * Empty , opts ... grpc . CallOption ) ( * VersionResponse , error )
Next ( ctx context . Context , in * NextRequest , opts ... grpc . CallOption ) ( * NextResponse , error )
2021-09-29 00:10:09 +00:00
Init ( ctx context . Context , in * InitRequest , opts ... grpc . CallOption ) ( * Empty , error )
Wait ( ctx context . Context , in * WaitRequest , opts ... grpc . CallOption ) ( * Empty , error )
Done ( ctx context . Context , in * DoneRequest , opts ... grpc . CallOption ) ( * Empty , error )
Extend ( ctx context . Context , in * ExtendRequest , opts ... grpc . CallOption ) ( * Empty , error )
Update ( ctx context . Context , in * UpdateRequest , opts ... grpc . CallOption ) ( * Empty , error )
Upload ( ctx context . Context , in * UploadRequest , opts ... grpc . CallOption ) ( * Empty , error )
Log ( ctx context . Context , in * LogRequest , opts ... grpc . CallOption ) ( * Empty , error )
2023-01-28 13:13:04 +00:00
RegisterAgent ( ctx context . Context , in * RegisterAgentRequest , opts ... grpc . CallOption ) ( * RegisterAgentResponse , error )
ReportHealth ( ctx context . Context , in * ReportHealthRequest , opts ... grpc . CallOption ) ( * Empty , error )
2021-09-29 00:10:09 +00:00
}
type woodpeckerClient struct {
cc grpc . ClientConnInterface
}
func NewWoodpeckerClient ( cc grpc . ClientConnInterface ) WoodpeckerClient {
return & woodpeckerClient { cc }
}
2023-03-19 21:42:21 +00:00
func ( c * woodpeckerClient ) Version ( ctx context . Context , in * Empty , opts ... grpc . CallOption ) ( * VersionResponse , error ) {
out := new ( VersionResponse )
err := c . cc . Invoke ( ctx , "/proto.Woodpecker/Version" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * woodpeckerClient ) Next ( ctx context . Context , in * NextRequest , opts ... grpc . CallOption ) ( * NextResponse , error ) {
out := new ( NextResponse )
err := c . cc . Invoke ( ctx , "/proto.Woodpecker/Next" , in , out , opts ... )
2021-09-29 00:10:09 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * woodpeckerClient ) Init ( ctx context . Context , in * InitRequest , opts ... grpc . CallOption ) ( * Empty , error ) {
out := new ( Empty )
2023-03-19 21:42:21 +00:00
err := c . cc . Invoke ( ctx , "/proto.Woodpecker/Init" , in , out , opts ... )
2021-09-29 00:10:09 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * woodpeckerClient ) Wait ( ctx context . Context , in * WaitRequest , opts ... grpc . CallOption ) ( * Empty , error ) {
out := new ( Empty )
2023-03-19 21:42:21 +00:00
err := c . cc . Invoke ( ctx , "/proto.Woodpecker/Wait" , in , out , opts ... )
2021-09-29 00:10:09 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * woodpeckerClient ) Done ( ctx context . Context , in * DoneRequest , opts ... grpc . CallOption ) ( * Empty , error ) {
out := new ( Empty )
2023-03-19 21:42:21 +00:00
err := c . cc . Invoke ( ctx , "/proto.Woodpecker/Done" , in , out , opts ... )
2021-09-29 00:10:09 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * woodpeckerClient ) Extend ( ctx context . Context , in * ExtendRequest , opts ... grpc . CallOption ) ( * Empty , error ) {
out := new ( Empty )
2023-03-19 21:42:21 +00:00
err := c . cc . Invoke ( ctx , "/proto.Woodpecker/Extend" , in , out , opts ... )
2021-09-29 00:10:09 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * woodpeckerClient ) Update ( ctx context . Context , in * UpdateRequest , opts ... grpc . CallOption ) ( * Empty , error ) {
out := new ( Empty )
2023-03-19 21:42:21 +00:00
err := c . cc . Invoke ( ctx , "/proto.Woodpecker/Update" , in , out , opts ... )
2021-09-29 00:10:09 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * woodpeckerClient ) Upload ( ctx context . Context , in * UploadRequest , opts ... grpc . CallOption ) ( * Empty , error ) {
out := new ( Empty )
2023-03-19 21:42:21 +00:00
err := c . cc . Invoke ( ctx , "/proto.Woodpecker/Upload" , in , out , opts ... )
2021-09-29 00:10:09 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * woodpeckerClient ) Log ( ctx context . Context , in * LogRequest , opts ... grpc . CallOption ) ( * Empty , error ) {
out := new ( Empty )
2023-03-19 21:42:21 +00:00
err := c . cc . Invoke ( ctx , "/proto.Woodpecker/Log" , in , out , opts ... )
2021-09-29 00:10:09 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2023-01-28 13:13:04 +00:00
func ( c * woodpeckerClient ) RegisterAgent ( ctx context . Context , in * RegisterAgentRequest , opts ... grpc . CallOption ) ( * RegisterAgentResponse , error ) {
out := new ( RegisterAgentResponse )
2023-03-19 21:42:21 +00:00
err := c . cc . Invoke ( ctx , "/proto.Woodpecker/RegisterAgent" , in , out , opts ... )
2023-01-28 13:13:04 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * woodpeckerClient ) ReportHealth ( ctx context . Context , in * ReportHealthRequest , opts ... grpc . CallOption ) ( * Empty , error ) {
out := new ( Empty )
2023-03-19 21:42:21 +00:00
err := c . cc . Invoke ( ctx , "/proto.Woodpecker/ReportHealth" , in , out , opts ... )
2023-01-28 13:13:04 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2021-09-29 00:10:09 +00:00
// WoodpeckerServer is the server API for Woodpecker service.
// All implementations must embed UnimplementedWoodpeckerServer
// for forward compatibility
type WoodpeckerServer interface {
2023-03-19 21:42:21 +00:00
Version ( context . Context , * Empty ) ( * VersionResponse , error )
Next ( context . Context , * NextRequest ) ( * NextResponse , error )
2021-09-29 00:10:09 +00:00
Init ( context . Context , * InitRequest ) ( * Empty , error )
Wait ( context . Context , * WaitRequest ) ( * Empty , error )
Done ( context . Context , * DoneRequest ) ( * Empty , error )
Extend ( context . Context , * ExtendRequest ) ( * Empty , error )
Update ( context . Context , * UpdateRequest ) ( * Empty , error )
Upload ( context . Context , * UploadRequest ) ( * Empty , error )
Log ( context . Context , * LogRequest ) ( * Empty , error )
2023-01-28 13:13:04 +00:00
RegisterAgent ( context . Context , * RegisterAgentRequest ) ( * RegisterAgentResponse , error )
ReportHealth ( context . Context , * ReportHealthRequest ) ( * Empty , error )
2021-09-29 00:10:09 +00:00
mustEmbedUnimplementedWoodpeckerServer ( )
}
// UnimplementedWoodpeckerServer must be embedded to have forward compatible implementations.
2023-03-19 21:42:21 +00:00
type UnimplementedWoodpeckerServer struct {
}
2021-09-29 00:10:09 +00:00
2023-03-19 21:42:21 +00:00
func ( UnimplementedWoodpeckerServer ) Version ( context . Context , * Empty ) ( * VersionResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Version not implemented" )
}
func ( UnimplementedWoodpeckerServer ) Next ( context . Context , * NextRequest ) ( * NextResponse , error ) {
2021-09-29 00:10:09 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method Next not implemented" )
}
func ( UnimplementedWoodpeckerServer ) Init ( context . Context , * InitRequest ) ( * Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Init not implemented" )
}
func ( UnimplementedWoodpeckerServer ) Wait ( context . Context , * WaitRequest ) ( * Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Wait not implemented" )
}
func ( UnimplementedWoodpeckerServer ) Done ( context . Context , * DoneRequest ) ( * Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Done not implemented" )
}
func ( UnimplementedWoodpeckerServer ) Extend ( context . Context , * ExtendRequest ) ( * Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Extend not implemented" )
}
func ( UnimplementedWoodpeckerServer ) Update ( context . Context , * UpdateRequest ) ( * Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Update not implemented" )
}
func ( UnimplementedWoodpeckerServer ) Upload ( context . Context , * UploadRequest ) ( * Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Upload not implemented" )
}
func ( UnimplementedWoodpeckerServer ) Log ( context . Context , * LogRequest ) ( * Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Log not implemented" )
}
2023-01-28 13:13:04 +00:00
func ( UnimplementedWoodpeckerServer ) RegisterAgent ( context . Context , * RegisterAgentRequest ) ( * RegisterAgentResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method RegisterAgent not implemented" )
}
func ( UnimplementedWoodpeckerServer ) ReportHealth ( context . Context , * ReportHealthRequest ) ( * Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ReportHealth not implemented" )
}
2021-09-29 00:10:09 +00:00
func ( UnimplementedWoodpeckerServer ) mustEmbedUnimplementedWoodpeckerServer ( ) { }
// UnsafeWoodpeckerServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to WoodpeckerServer will
// result in compilation errors.
type UnsafeWoodpeckerServer interface {
mustEmbedUnimplementedWoodpeckerServer ( )
}
func RegisterWoodpeckerServer ( s grpc . ServiceRegistrar , srv WoodpeckerServer ) {
s . RegisterService ( & Woodpecker_ServiceDesc , srv )
}
2023-03-19 21:42:21 +00:00
func _Woodpecker_Version_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( Empty )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WoodpeckerServer ) . Version ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/proto.Woodpecker/Version" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WoodpeckerServer ) . Version ( ctx , req . ( * Empty ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-09-29 00:10:09 +00:00
func _Woodpecker_Next_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( NextRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WoodpeckerServer ) . Next ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-19 21:42:21 +00:00
FullMethod : "/proto.Woodpecker/Next" ,
2021-09-29 00:10:09 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WoodpeckerServer ) . Next ( ctx , req . ( * NextRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Woodpecker_Init_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( InitRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WoodpeckerServer ) . Init ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-19 21:42:21 +00:00
FullMethod : "/proto.Woodpecker/Init" ,
2021-09-29 00:10:09 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WoodpeckerServer ) . Init ( ctx , req . ( * InitRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Woodpecker_Wait_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( WaitRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WoodpeckerServer ) . Wait ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-19 21:42:21 +00:00
FullMethod : "/proto.Woodpecker/Wait" ,
2021-09-29 00:10:09 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WoodpeckerServer ) . Wait ( ctx , req . ( * WaitRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Woodpecker_Done_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DoneRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WoodpeckerServer ) . Done ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-19 21:42:21 +00:00
FullMethod : "/proto.Woodpecker/Done" ,
2021-09-29 00:10:09 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WoodpeckerServer ) . Done ( ctx , req . ( * DoneRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Woodpecker_Extend_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ExtendRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WoodpeckerServer ) . Extend ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-19 21:42:21 +00:00
FullMethod : "/proto.Woodpecker/Extend" ,
2021-09-29 00:10:09 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WoodpeckerServer ) . Extend ( ctx , req . ( * ExtendRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Woodpecker_Update_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UpdateRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WoodpeckerServer ) . Update ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-19 21:42:21 +00:00
FullMethod : "/proto.Woodpecker/Update" ,
2021-09-29 00:10:09 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WoodpeckerServer ) . Update ( ctx , req . ( * UpdateRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Woodpecker_Upload_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UploadRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WoodpeckerServer ) . Upload ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-19 21:42:21 +00:00
FullMethod : "/proto.Woodpecker/Upload" ,
2021-09-29 00:10:09 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WoodpeckerServer ) . Upload ( ctx , req . ( * UploadRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Woodpecker_Log_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( LogRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WoodpeckerServer ) . Log ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-19 21:42:21 +00:00
FullMethod : "/proto.Woodpecker/Log" ,
2021-09-29 00:10:09 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WoodpeckerServer ) . Log ( ctx , req . ( * LogRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-01-28 13:13:04 +00:00
func _Woodpecker_RegisterAgent_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RegisterAgentRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WoodpeckerServer ) . RegisterAgent ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-19 21:42:21 +00:00
FullMethod : "/proto.Woodpecker/RegisterAgent" ,
2023-01-28 13:13:04 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WoodpeckerServer ) . RegisterAgent ( ctx , req . ( * RegisterAgentRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Woodpecker_ReportHealth_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ReportHealthRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WoodpeckerServer ) . ReportHealth ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-19 21:42:21 +00:00
FullMethod : "/proto.Woodpecker/ReportHealth" ,
2023-01-28 13:13:04 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WoodpeckerServer ) . ReportHealth ( ctx , req . ( * ReportHealthRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-09-29 00:10:09 +00:00
// Woodpecker_ServiceDesc is the grpc.ServiceDesc for Woodpecker service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Woodpecker_ServiceDesc = grpc . ServiceDesc {
ServiceName : "proto.Woodpecker" ,
HandlerType : ( * WoodpeckerServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
2023-03-19 21:42:21 +00:00
{
MethodName : "Version" ,
Handler : _Woodpecker_Version_Handler ,
} ,
2021-09-29 00:10:09 +00:00
{
MethodName : "Next" ,
Handler : _Woodpecker_Next_Handler ,
} ,
{
MethodName : "Init" ,
Handler : _Woodpecker_Init_Handler ,
} ,
{
MethodName : "Wait" ,
Handler : _Woodpecker_Wait_Handler ,
} ,
{
MethodName : "Done" ,
Handler : _Woodpecker_Done_Handler ,
} ,
{
MethodName : "Extend" ,
Handler : _Woodpecker_Extend_Handler ,
} ,
{
MethodName : "Update" ,
Handler : _Woodpecker_Update_Handler ,
} ,
{
MethodName : "Upload" ,
Handler : _Woodpecker_Upload_Handler ,
} ,
{
MethodName : "Log" ,
Handler : _Woodpecker_Log_Handler ,
} ,
2023-01-28 13:13:04 +00:00
{
MethodName : "RegisterAgent" ,
Handler : _Woodpecker_RegisterAgent_Handler ,
} ,
{
MethodName : "ReportHealth" ,
Handler : _Woodpecker_ReportHealth_Handler ,
} ,
2021-09-29 00:10:09 +00:00
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "woodpecker.proto" ,
}
2023-01-28 13:13:04 +00:00
// WoodpeckerAuthClient is the client API for WoodpeckerAuth service.
2021-09-29 00:10:09 +00:00
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
2023-01-28 13:13:04 +00:00
type WoodpeckerAuthClient interface {
2023-03-19 21:42:21 +00:00
Auth ( ctx context . Context , in * AuthRequest , opts ... grpc . CallOption ) ( * AuthResponse , error )
2021-09-29 00:10:09 +00:00
}
2023-01-28 13:13:04 +00:00
type woodpeckerAuthClient struct {
2021-09-29 00:10:09 +00:00
cc grpc . ClientConnInterface
}
2023-01-28 13:13:04 +00:00
func NewWoodpeckerAuthClient ( cc grpc . ClientConnInterface ) WoodpeckerAuthClient {
return & woodpeckerAuthClient { cc }
2021-09-29 00:10:09 +00:00
}
2023-03-19 21:42:21 +00:00
func ( c * woodpeckerAuthClient ) Auth ( ctx context . Context , in * AuthRequest , opts ... grpc . CallOption ) ( * AuthResponse , error ) {
out := new ( AuthResponse )
err := c . cc . Invoke ( ctx , "/proto.WoodpeckerAuth/Auth" , in , out , opts ... )
2021-09-29 00:10:09 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2023-01-28 13:13:04 +00:00
// WoodpeckerAuthServer is the server API for WoodpeckerAuth service.
// All implementations must embed UnimplementedWoodpeckerAuthServer
2021-09-29 00:10:09 +00:00
// for forward compatibility
2023-01-28 13:13:04 +00:00
type WoodpeckerAuthServer interface {
2023-03-19 21:42:21 +00:00
Auth ( context . Context , * AuthRequest ) ( * AuthResponse , error )
2023-01-28 13:13:04 +00:00
mustEmbedUnimplementedWoodpeckerAuthServer ( )
2021-09-29 00:10:09 +00:00
}
2023-01-28 13:13:04 +00:00
// UnimplementedWoodpeckerAuthServer must be embedded to have forward compatible implementations.
2023-03-19 21:42:21 +00:00
type UnimplementedWoodpeckerAuthServer struct {
}
2021-09-29 00:10:09 +00:00
2023-03-19 21:42:21 +00:00
func ( UnimplementedWoodpeckerAuthServer ) Auth ( context . Context , * AuthRequest ) ( * AuthResponse , error ) {
2023-01-28 13:13:04 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method Auth not implemented" )
2021-09-29 00:10:09 +00:00
}
2023-01-28 13:13:04 +00:00
func ( UnimplementedWoodpeckerAuthServer ) mustEmbedUnimplementedWoodpeckerAuthServer ( ) { }
2021-09-29 00:10:09 +00:00
2023-01-28 13:13:04 +00:00
// UnsafeWoodpeckerAuthServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to WoodpeckerAuthServer will
2021-09-29 00:10:09 +00:00
// result in compilation errors.
2023-01-28 13:13:04 +00:00
type UnsafeWoodpeckerAuthServer interface {
mustEmbedUnimplementedWoodpeckerAuthServer ( )
2021-09-29 00:10:09 +00:00
}
2023-01-28 13:13:04 +00:00
func RegisterWoodpeckerAuthServer ( s grpc . ServiceRegistrar , srv WoodpeckerAuthServer ) {
s . RegisterService ( & WoodpeckerAuth_ServiceDesc , srv )
2021-09-29 00:10:09 +00:00
}
2023-01-28 13:13:04 +00:00
func _WoodpeckerAuth_Auth_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( AuthRequest )
2021-09-29 00:10:09 +00:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-01-28 13:13:04 +00:00
return srv . ( WoodpeckerAuthServer ) . Auth ( ctx , in )
2021-09-29 00:10:09 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-19 21:42:21 +00:00
FullMethod : "/proto.WoodpeckerAuth/Auth" ,
2021-09-29 00:10:09 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-01-28 13:13:04 +00:00
return srv . ( WoodpeckerAuthServer ) . Auth ( ctx , req . ( * AuthRequest ) )
2021-09-29 00:10:09 +00:00
}
return interceptor ( ctx , in , info , handler )
}
2023-01-28 13:13:04 +00:00
// WoodpeckerAuth_ServiceDesc is the grpc.ServiceDesc for WoodpeckerAuth service.
2021-09-29 00:10:09 +00:00
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
2023-01-28 13:13:04 +00:00
var WoodpeckerAuth_ServiceDesc = grpc . ServiceDesc {
ServiceName : "proto.WoodpeckerAuth" ,
HandlerType : ( * WoodpeckerAuthServer ) ( nil ) ,
2021-09-29 00:10:09 +00:00
Methods : [ ] grpc . MethodDesc {
{
2023-01-28 13:13:04 +00:00
MethodName : "Auth" ,
Handler : _WoodpeckerAuth_Auth_Handler ,
2021-09-29 00:10:09 +00:00
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "woodpecker.proto" ,
}