pb

package
v0.0.0-...-a6a4912 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AirlineCompanyServices_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cawo.v1alpha1.AirlineCompanyServices",
	HandlerType: (*AirlineCompanyServicesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateAirlineCompany",
			Handler:    _AirlineCompanyServices_CreateAirlineCompany_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "company_service.proto",
}

AirlineCompanyServices_ServiceDesc is the grpc.ServiceDesc for AirlineCompanyServices service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_aircraft_service_proto protoreflect.FileDescriptor
View Source
var File_airport_service_proto protoreflect.FileDescriptor
View Source
var File_company_service_proto protoreflect.FileDescriptor
View Source
var File_flight_service_proto protoreflect.FileDescriptor

Functions

func RegisterAirlineCompanyServicesServer

func RegisterAirlineCompanyServicesServer(s grpc.ServiceRegistrar, srv AirlineCompanyServicesServer)

Types

type AirlineCompany

type AirlineCompany struct {
	Company_ID  int64                  `protobuf:"varint,1,opt,name=company_ID,json=companyID,proto3" json:"company_ID,omitempty"`
	CompanyName string                 `protobuf:"bytes,2,opt,name=company_name,json=companyName,proto3" json:"company_name,omitempty"`
	IataCode    string                 `protobuf:"bytes,3,opt,name=iata_code,json=iataCode,proto3" json:"iata_code,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` //    string mainAirport = 4;
	// contains filtered or unexported fields
}

func (*AirlineCompany) Descriptor deprecated

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

Deprecated: Use AirlineCompany.ProtoReflect.Descriptor instead.

func (*AirlineCompany) GetCompanyName

func (x *AirlineCompany) GetCompanyName() string

func (*AirlineCompany) GetCompany_ID

func (x *AirlineCompany) GetCompany_ID() int64

func (*AirlineCompany) GetCreatedAt

func (x *AirlineCompany) GetCreatedAt() *timestamppb.Timestamp

func (*AirlineCompany) GetIataCode

func (x *AirlineCompany) GetIataCode() string

func (*AirlineCompany) ProtoMessage

func (*AirlineCompany) ProtoMessage()

func (*AirlineCompany) ProtoReflect

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

func (*AirlineCompany) Reset

func (x *AirlineCompany) Reset()

func (*AirlineCompany) String

func (x *AirlineCompany) String() string

type AirlineCompanyServicesClient

type AirlineCompanyServicesClient interface {
	CreateAirlineCompany(ctx context.Context, in *CreateAirlineCompanyParams, opts ...grpc.CallOption) (*AirlineCompany, error)
}

AirlineCompanyServicesClient is the client API for AirlineCompanyServices 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 AirlineCompanyServicesServer

type AirlineCompanyServicesServer interface {
	CreateAirlineCompany(context.Context, *CreateAirlineCompanyParams) (*AirlineCompany, error)
	// contains filtered or unexported methods
}

AirlineCompanyServicesServer is the server API for AirlineCompanyServices service. All implementations must embed UnimplementedAirlineCompanyServicesServer for forward compatibility

type Airport

type Airport struct {
	AirportCode string                 `protobuf:"bytes,1,opt,name=airportCode,proto3" json:"airportCode,omitempty"`
	AirportName string                 `protobuf:"bytes,2,opt,name=airportName,proto3" json:"airportName,omitempty"`
	City        string                 `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"`
	Coordinates *Airport_Coordinates   `protobuf:"bytes,4,opt,name=coordinates,proto3" json:"coordinates,omitempty"`
	Timezone    *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timezone,proto3" json:"timezone,omitempty"`
	// contains filtered or unexported fields
}

func (*Airport) Descriptor deprecated

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

Deprecated: Use Airport.ProtoReflect.Descriptor instead.

func (*Airport) GetAirportCode

func (x *Airport) GetAirportCode() string

func (*Airport) GetAirportName

func (x *Airport) GetAirportName() string

func (*Airport) GetCity

func (x *Airport) GetCity() string

func (*Airport) GetCoordinates

func (x *Airport) GetCoordinates() *Airport_Coordinates

func (*Airport) GetTimezone

func (x *Airport) GetTimezone() *timestamppb.Timestamp

func (*Airport) ProtoMessage

func (*Airport) ProtoMessage()

func (*Airport) ProtoReflect

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

func (*Airport) Reset

func (x *Airport) Reset()

func (*Airport) String

func (x *Airport) String() string

type Airport_Coordinates

type Airport_Coordinates struct {
	Longitude float64 `protobuf:"fixed64,1,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Latitude  float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
	// contains filtered or unexported fields
}

func (*Airport_Coordinates) Descriptor deprecated

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

Deprecated: Use Airport_Coordinates.ProtoReflect.Descriptor instead.

func (*Airport_Coordinates) GetLatitude

func (x *Airport_Coordinates) GetLatitude() float64

func (*Airport_Coordinates) GetLongitude

func (x *Airport_Coordinates) GetLongitude() float64

func (*Airport_Coordinates) ProtoMessage

func (*Airport_Coordinates) ProtoMessage()

func (*Airport_Coordinates) ProtoReflect

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

func (*Airport_Coordinates) Reset

func (x *Airport_Coordinates) Reset()

func (*Airport_Coordinates) String

func (x *Airport_Coordinates) String() string

type CreateAirlineCompanyParams

type CreateAirlineCompanyParams struct {
	Company_ID  int64                  `protobuf:"varint,1,opt,name=company_ID,json=companyID,proto3" json:"company_ID,omitempty"`
	CompanyName string                 `protobuf:"bytes,2,opt,name=company_name,json=companyName,proto3" json:"company_name,omitempty"`
	IataCode    string                 `protobuf:"bytes,3,opt,name=iata_code,json=iataCode,proto3" json:"iata_code,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` //    string mainAirport = 4;
	// contains filtered or unexported fields
}

API versioning: it is my best practice to specify version explicitly. string api = 1;

func (*CreateAirlineCompanyParams) Descriptor deprecated

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

Deprecated: Use CreateAirlineCompanyParams.ProtoReflect.Descriptor instead.

func (*CreateAirlineCompanyParams) GetCompanyName

func (x *CreateAirlineCompanyParams) GetCompanyName() string

func (*CreateAirlineCompanyParams) GetCompany_ID

func (x *CreateAirlineCompanyParams) GetCompany_ID() int64

func (*CreateAirlineCompanyParams) GetCreatedAt

func (*CreateAirlineCompanyParams) GetIataCode

func (x *CreateAirlineCompanyParams) GetIataCode() string

func (*CreateAirlineCompanyParams) ProtoMessage

func (*CreateAirlineCompanyParams) ProtoMessage()

func (*CreateAirlineCompanyParams) ProtoReflect

func (*CreateAirlineCompanyParams) Reset

func (x *CreateAirlineCompanyParams) Reset()

func (*CreateAirlineCompanyParams) String

func (x *CreateAirlineCompanyParams) String() string

type GetAirlineCompanyParams

type GetAirlineCompanyParams struct {
	CompanyID int64 `protobuf:"varint,1,opt,name=companyID,proto3" json:"companyID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAirlineCompanyParams) Descriptor deprecated

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

Deprecated: Use GetAirlineCompanyParams.ProtoReflect.Descriptor instead.

func (*GetAirlineCompanyParams) GetCompanyID

func (x *GetAirlineCompanyParams) GetCompanyID() int64

func (*GetAirlineCompanyParams) ProtoMessage

func (*GetAirlineCompanyParams) ProtoMessage()

func (*GetAirlineCompanyParams) ProtoReflect

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

func (*GetAirlineCompanyParams) Reset

func (x *GetAirlineCompanyParams) Reset()

func (*GetAirlineCompanyParams) String

func (x *GetAirlineCompanyParams) String() string

type ListAirlineCompanyResponse

type ListAirlineCompanyResponse struct {
	Value []*AirlineCompany `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAirlineCompanyResponse) Descriptor deprecated

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

Deprecated: Use ListAirlineCompanyResponse.ProtoReflect.Descriptor instead.

func (*ListAirlineCompanyResponse) GetValue

func (x *ListAirlineCompanyResponse) GetValue() []*AirlineCompany

func (*ListAirlineCompanyResponse) ProtoMessage

func (*ListAirlineCompanyResponse) ProtoMessage()

func (*ListAirlineCompanyResponse) ProtoReflect

func (*ListAirlineCompanyResponse) Reset

func (x *ListAirlineCompanyResponse) Reset()

func (*ListAirlineCompanyResponse) String

func (x *ListAirlineCompanyResponse) String() string

type UnimplementedAirlineCompanyServicesServer

type UnimplementedAirlineCompanyServicesServer struct {
}

UnimplementedAirlineCompanyServicesServer must be embedded to have forward compatible implementations.

func (UnimplementedAirlineCompanyServicesServer) CreateAirlineCompany

type UnsafeAirlineCompanyServicesServer

type UnsafeAirlineCompanyServicesServer interface {
	// contains filtered or unexported methods
}

UnsafeAirlineCompanyServicesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AirlineCompanyServicesServer will result in compilation errors.

Jump to

Keyboard shortcuts

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