2023-03-21 22:01:59 +00:00
// Copyright 2021 Woodpecker Authors
// Copyright 2011 Drone.IO Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
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-21 22:01:59 +00:00
// - protoc-gen-go-grpc v1.3.0
2023-07-11 13:53:05 +00:00
// - protoc v4.23.3
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
2023-03-21 22:01:59 +00:00
const (
Woodpecker_Version_FullMethodName = "/proto.Woodpecker/Version"
Woodpecker_Next_FullMethodName = "/proto.Woodpecker/Next"
Woodpecker_Init_FullMethodName = "/proto.Woodpecker/Init"
Woodpecker_Wait_FullMethodName = "/proto.Woodpecker/Wait"
Woodpecker_Done_FullMethodName = "/proto.Woodpecker/Done"
Woodpecker_Extend_FullMethodName = "/proto.Woodpecker/Extend"
Woodpecker_Update_FullMethodName = "/proto.Woodpecker/Update"
Woodpecker_Log_FullMethodName = "/proto.Woodpecker/Log"
Woodpecker_RegisterAgent_FullMethodName = "/proto.Woodpecker/RegisterAgent"
Woodpecker_ReportHealth_FullMethodName = "/proto.Woodpecker/ReportHealth"
)
2021-09-29 00:10:09 +00:00
// 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 )
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 )
2023-03-21 22:01:59 +00:00
err := c . cc . Invoke ( ctx , Woodpecker_Version_FullMethodName , in , out , opts ... )
2023-03-19 21:42:21 +00:00
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 )
2023-03-21 22:01:59 +00:00
err := c . cc . Invoke ( ctx , Woodpecker_Next_FullMethodName , 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-21 22:01:59 +00:00
err := c . cc . Invoke ( ctx , Woodpecker_Init_FullMethodName , 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-21 22:01:59 +00:00
err := c . cc . Invoke ( ctx , Woodpecker_Wait_FullMethodName , 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-21 22:01:59 +00:00
err := c . cc . Invoke ( ctx , Woodpecker_Done_FullMethodName , 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-21 22:01:59 +00:00
err := c . cc . Invoke ( ctx , Woodpecker_Extend_FullMethodName , 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-21 22:01:59 +00:00
err := c . cc . Invoke ( ctx , Woodpecker_Update_FullMethodName , 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-21 22:01:59 +00:00
err := c . cc . Invoke ( ctx , Woodpecker_Log_FullMethodName , 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-21 22:01:59 +00:00
err := c . cc . Invoke ( ctx , Woodpecker_RegisterAgent_FullMethodName , 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-21 22:01:59 +00:00
err := c . cc . Invoke ( ctx , Woodpecker_ReportHealth_FullMethodName , 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 )
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 ) 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 ,
2023-03-21 22:01:59 +00:00
FullMethod : Woodpecker_Version_FullMethodName ,
2023-03-19 21:42:21 +00:00
}
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-21 22:01:59 +00:00
FullMethod : Woodpecker_Next_FullMethodName ,
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-21 22:01:59 +00:00
FullMethod : Woodpecker_Init_FullMethodName ,
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-21 22:01:59 +00:00
FullMethod : Woodpecker_Wait_FullMethodName ,
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-21 22:01:59 +00:00
FullMethod : Woodpecker_Done_FullMethodName ,
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-21 22:01:59 +00:00
FullMethod : Woodpecker_Extend_FullMethodName ,
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-21 22:01:59 +00:00
FullMethod : Woodpecker_Update_FullMethodName ,
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_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-21 22:01:59 +00:00
FullMethod : Woodpecker_Log_FullMethodName ,
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-21 22:01:59 +00:00
FullMethod : Woodpecker_RegisterAgent_FullMethodName ,
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-21 22:01:59 +00:00
FullMethod : Woodpecker_ReportHealth_FullMethodName ,
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 : "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-03-21 22:01:59 +00:00
const (
WoodpeckerAuth_Auth_FullMethodName = "/proto.WoodpeckerAuth/Auth"
)
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 )
2023-03-21 22:01:59 +00:00
err := c . cc . Invoke ( ctx , WoodpeckerAuth_Auth_FullMethodName , 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-21 22:01:59 +00:00
FullMethod : WoodpeckerAuth_Auth_FullMethodName ,
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" ,
}