diff --git a/api/api.pb.go b/api/api.pb.go index 2a8ffab8..6df759cd 100644 --- a/api/api.pb.go +++ b/api/api.pb.go @@ -34,7 +34,7 @@ func (m *Void) Reset() { *m = Void{} } func (m *Void) String() string { return proto.CompactTextString(m) } func (*Void) ProtoMessage() {} func (*Void) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{0} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{0} } func (m *Void) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -63,6 +63,50 @@ func (m *Void) XXX_DiscardUnknown() { var xxx_messageInfo_Void proto.InternalMessageInfo +type Pong struct { + Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"` +} + +func (m *Pong) Reset() { *m = Pong{} } +func (m *Pong) String() string { return proto.CompactTextString(m) } +func (*Pong) ProtoMessage() {} +func (*Pong) Descriptor() ([]byte, []int) { + return fileDescriptor_api_0c0ca6419dfaf57b, []int{1} +} +func (m *Pong) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Pong.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (dst *Pong) XXX_Merge(src proto.Message) { + xxx_messageInfo_Pong.Merge(dst, src) +} +func (m *Pong) XXX_Size() int { + return m.Size() +} +func (m *Pong) XXX_DiscardUnknown() { + xxx_messageInfo_Pong.DiscardUnknown(m) +} + +var xxx_messageInfo_Pong proto.InternalMessageInfo + +func (m *Pong) GetPong() string { + if m != nil { + return m.Pong + } + return "" +} + type CrewOutput struct { } @@ -70,7 +114,7 @@ func (m *CrewOutput) Reset() { *m = CrewOutput{} } func (m *CrewOutput) String() string { return proto.CompactTextString(m) } func (*CrewOutput) ProtoMessage() {} func (*CrewOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{1} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{2} } func (m *CrewOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -107,7 +151,7 @@ func (m *KryptosInput) Reset() { *m = KryptosInput{} } func (m *KryptosInput) String() string { return proto.CompactTextString(m) } func (*KryptosInput) ProtoMessage() {} func (*KryptosInput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{2} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{3} } func (m *KryptosInput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -151,7 +195,7 @@ func (m *KryptosOutput) Reset() { *m = KryptosOutput{} } func (m *KryptosOutput) String() string { return proto.CompactTextString(m) } func (*KryptosOutput) ProtoMessage() {} func (*KryptosOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{3} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{4} } func (m *KryptosOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -195,7 +239,7 @@ func (m *TpyoEnocdeIpunt) Reset() { *m = TpyoEnocdeIpunt{} } func (m *TpyoEnocdeIpunt) String() string { return proto.CompactTextString(m) } func (*TpyoEnocdeIpunt) ProtoMessage() {} func (*TpyoEnocdeIpunt) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{4} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{5} } func (m *TpyoEnocdeIpunt) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -239,7 +283,7 @@ func (m *TpyoEnocdeOuptut) Reset() { *m = TpyoEnocdeOuptut{} } func (m *TpyoEnocdeOuptut) String() string { return proto.CompactTextString(m) } func (*TpyoEnocdeOuptut) ProtoMessage() {} func (*TpyoEnocdeOuptut) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{5} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{6} } func (m *TpyoEnocdeOuptut) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -282,7 +326,7 @@ func (m *DahsboardRandomOutput) Reset() { *m = DahsboardRandomOutput{} } func (m *DahsboardRandomOutput) String() string { return proto.CompactTextString(m) } func (*DahsboardRandomOutput) ProtoMessage() {} func (*DahsboardRandomOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{6} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{7} } func (m *DahsboardRandomOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -319,7 +363,7 @@ func (m *NumberinfoInput) Reset() { *m = NumberinfoInput{} } func (m *NumberinfoInput) String() string { return proto.CompactTextString(m) } func (*NumberinfoInput) ProtoMessage() {} func (*NumberinfoInput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{7} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{8} } func (m *NumberinfoInput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -362,7 +406,7 @@ func (m *NumberinfoOutput) Reset() { *m = NumberinfoOutput{} } func (m *NumberinfoOutput) String() string { return proto.CompactTextString(m) } func (*NumberinfoOutput) ProtoMessage() {} func (*NumberinfoOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{8} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{9} } func (m *NumberinfoOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -399,7 +443,7 @@ func (m *MoijaimeOutput) Reset() { *m = MoijaimeOutput{} } func (m *MoijaimeOutput) String() string { return proto.CompactTextString(m) } func (*MoijaimeOutput) ProtoMessage() {} func (*MoijaimeOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{9} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{10} } func (m *MoijaimeOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -443,7 +487,7 @@ func (m *WotdOutput) Reset() { *m = WotdOutput{} } func (m *WotdOutput) String() string { return proto.CompactTextString(m) } func (*WotdOutput) ProtoMessage() {} func (*WotdOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{10} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{11} } func (m *WotdOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -487,7 +531,7 @@ func (m *AlternateLogoOutput) Reset() { *m = AlternateLogoOutput{} } func (m *AlternateLogoOutput) String() string { return proto.CompactTextString(m) } func (*AlternateLogoOutput) ProtoMessage() {} func (*AlternateLogoOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{11} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{12} } func (m *AlternateLogoOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -530,7 +574,7 @@ func (m *DahsboardOutput) Reset() { *m = DahsboardOutput{} } func (m *DahsboardOutput) String() string { return proto.CompactTextString(m) } func (*DahsboardOutput) ProtoMessage() {} func (*DahsboardOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{12} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{13} } func (m *DahsboardOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -567,7 +611,7 @@ func (m *RecettatorInput) Reset() { *m = RecettatorInput{} } func (m *RecettatorInput) String() string { return proto.CompactTextString(m) } func (*RecettatorInput) ProtoMessage() {} func (*RecettatorInput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{13} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{14} } func (m *RecettatorInput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -610,7 +654,7 @@ func (m *RecettatorOutput) Reset() { *m = RecettatorOutput{} } func (m *RecettatorOutput) String() string { return proto.CompactTextString(m) } func (*RecettatorOutput) ProtoMessage() {} func (*RecettatorOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{14} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{15} } func (m *RecettatorOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -646,7 +690,7 @@ func (m *DashboardOutput) Reset() { *m = DashboardOutput{} } func (m *DashboardOutput) String() string { return proto.CompactTextString(m) } func (*DashboardOutput) ProtoMessage() {} func (*DashboardOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{15} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{16} } func (m *DashboardOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -682,7 +726,7 @@ func (m *SpreadshirtRandomOutput) Reset() { *m = SpreadshirtRandomOutput func (m *SpreadshirtRandomOutput) String() string { return proto.CompactTextString(m) } func (*SpreadshirtRandomOutput) ProtoMessage() {} func (*SpreadshirtRandomOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{16} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{17} } func (m *SpreadshirtRandomOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -718,7 +762,7 @@ func (m *SpreadshirtAllOutput) Reset() { *m = SpreadshirtAllOutput{} } func (m *SpreadshirtAllOutput) String() string { return proto.CompactTextString(m) } func (*SpreadshirtAllOutput) ProtoMessage() {} func (*SpreadshirtAllOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{17} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{18} } func (m *SpreadshirtAllOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -754,7 +798,7 @@ func (m *SoundcloudMeOutput) Reset() { *m = SoundcloudMeOutput{} } func (m *SoundcloudMeOutput) String() string { return proto.CompactTextString(m) } func (*SoundcloudMeOutput) ProtoMessage() {} func (*SoundcloudMeOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{18} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{19} } func (m *SoundcloudMeOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -790,7 +834,7 @@ func (m *SoundcloudPlaylistsOutput) Reset() { *m = SoundcloudPlaylistsOu func (m *SoundcloudPlaylistsOutput) String() string { return proto.CompactTextString(m) } func (*SoundcloudPlaylistsOutput) ProtoMessage() {} func (*SoundcloudPlaylistsOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{19} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{20} } func (m *SoundcloudPlaylistsOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -826,7 +870,7 @@ func (m *SoundcloudPlaylistOutput) Reset() { *m = SoundcloudPlaylistOutp func (m *SoundcloudPlaylistOutput) String() string { return proto.CompactTextString(m) } func (*SoundcloudPlaylistOutput) ProtoMessage() {} func (*SoundcloudPlaylistOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{20} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{21} } func (m *SoundcloudPlaylistOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -862,7 +906,7 @@ func (m *SoundcloudTracksOutput) Reset() { *m = SoundcloudTracksOutput{} func (m *SoundcloudTracksOutput) String() string { return proto.CompactTextString(m) } func (*SoundcloudTracksOutput) ProtoMessage() {} func (*SoundcloudTracksOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{21} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{22} } func (m *SoundcloudTracksOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -898,7 +942,7 @@ func (m *SoundcloudTrackOutput) Reset() { *m = SoundcloudTrackOutput{} } func (m *SoundcloudTrackOutput) String() string { return proto.CompactTextString(m) } func (*SoundcloudTrackOutput) ProtoMessage() {} func (*SoundcloudTrackOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{22} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{23} } func (m *SoundcloudTrackOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -935,7 +979,7 @@ func (m *SoundcloudPlaylistInput) Reset() { *m = SoundcloudPlaylistInput func (m *SoundcloudPlaylistInput) String() string { return proto.CompactTextString(m) } func (*SoundcloudPlaylistInput) ProtoMessage() {} func (*SoundcloudPlaylistInput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{23} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{24} } func (m *SoundcloudPlaylistInput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -979,7 +1023,7 @@ func (m *SoundcloudTrackInput) Reset() { *m = SoundcloudTrackInput{} } func (m *SoundcloudTrackInput) String() string { return proto.CompactTextString(m) } func (*SoundcloudTrackInput) ProtoMessage() {} func (*SoundcloudTrackInput) Descriptor() ([]byte, []int) { - return fileDescriptor_api_c6b3cd17733975c5, []int{24} + return fileDescriptor_api_0c0ca6419dfaf57b, []int{25} } func (m *SoundcloudTrackInput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1017,6 +1061,7 @@ func (m *SoundcloudTrackInput) GetTrackId() string { func init() { proto.RegisterType((*Void)(nil), "calcbiz.server.Void") + proto.RegisterType((*Pong)(nil), "calcbiz.server.Pong") proto.RegisterType((*CrewOutput)(nil), "calcbiz.server.CrewOutput") proto.RegisterType((*KryptosInput)(nil), "calcbiz.server.KryptosInput") proto.RegisterType((*KryptosOutput)(nil), "calcbiz.server.KryptosOutput") @@ -1058,7 +1103,7 @@ type ServerClient interface { KryptosEncrypt(ctx context.Context, in *KryptosInput, opts ...grpc.CallOption) (*KryptosOutput, error) KryptosDecrypt(ctx context.Context, in *KryptosInput, opts ...grpc.CallOption) (*KryptosOutput, error) TpyoEnocde(ctx context.Context, in *TpyoEnocdeIpunt, opts ...grpc.CallOption) (*TpyoEnocdeOuptut, error) - Ping(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Void, error) + Ping(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Pong, error) Dashboard(ctx context.Context, in *Void, opts ...grpc.CallOption) (*DashboardOutput, error) Crew(ctx context.Context, in *Void, opts ...grpc.CallOption) (*CrewOutput, error) Numberinfo(ctx context.Context, in *NumberinfoInput, opts ...grpc.CallOption) (*NumberinfoOutput, error) @@ -1110,8 +1155,8 @@ func (c *serverClient) TpyoEnocde(ctx context.Context, in *TpyoEnocdeIpunt, opts return out, nil } -func (c *serverClient) Ping(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Void, error) { - out := new(Void) +func (c *serverClient) Ping(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Pong, error) { + out := new(Pong) err := c.cc.Invoke(ctx, "/calcbiz.server.Server/Ping", in, out, opts...) if err != nil { return nil, err @@ -1250,7 +1295,7 @@ type ServerServer interface { KryptosEncrypt(context.Context, *KryptosInput) (*KryptosOutput, error) KryptosDecrypt(context.Context, *KryptosInput) (*KryptosOutput, error) TpyoEnocde(context.Context, *TpyoEnocdeIpunt) (*TpyoEnocdeOuptut, error) - Ping(context.Context, *Void) (*Void, error) + Ping(context.Context, *Void) (*Pong, error) Dashboard(context.Context, *Void) (*DashboardOutput, error) Crew(context.Context, *Void) (*CrewOutput, error) Numberinfo(context.Context, *NumberinfoInput) (*NumberinfoOutput, error) @@ -1694,6 +1739,30 @@ func (m *Void) MarshalTo(dAtA []byte) (int, error) { return i, nil } +func (m *Pong) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Pong) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Pong) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintApi(dAtA, i, uint64(len(m.Pong))) + i += copy(dAtA[i:], m.Pong) + } + return i, nil +} + func (m *CrewOutput) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2218,6 +2287,19 @@ func (m *Void) Size() (n int) { return n } +func (m *Pong) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Pong) + if l > 0 { + n += 1 + l + sovApi(uint64(l)) + } + return n +} + func (m *CrewOutput) Size() (n int) { if m == nil { return 0 @@ -2542,6 +2624,85 @@ func (m *Void) Unmarshal(dAtA []byte) error { } return nil } +func (m *Pong) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Pong: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Pong: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pong", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pong = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApi(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthApi + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *CrewOutput) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -4156,69 +4317,71 @@ var ( ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") ) -func init() { proto.RegisterFile("api/api.proto", fileDescriptor_api_c6b3cd17733975c5) } - -var fileDescriptor_api_c6b3cd17733975c5 = []byte{ - // 974 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xbd, 0x6f, 0xdb, 0x46, - 0x14, 0x37, 0x1d, 0xd5, 0x8d, 0x5f, 0x6c, 0xc9, 0x3e, 0xcb, 0xfa, 0xa0, 0x5d, 0x59, 0xb9, 0xc4, - 0xb1, 0x5d, 0x20, 0x22, 0xda, 0x6e, 0xd9, 0xd2, 0xc6, 0x83, 0x91, 0xa6, 0x09, 0xe4, 0xa0, 0x01, - 0xb2, 0x14, 0x14, 0x79, 0x92, 0x18, 0x53, 0x3c, 0xf6, 0x78, 0xac, 0xe1, 0x1a, 0x5e, 0xba, 0x75, - 0x2b, 0xd0, 0x25, 0x7f, 0x52, 0xc7, 0x00, 0x5d, 0x3a, 0x16, 0x76, 0xff, 0x90, 0x82, 0x77, 0x47, - 0x91, 0x3c, 0x8a, 0x75, 0xa7, 0x6c, 0x77, 0xef, 0xe3, 0xf7, 0x7b, 0xf7, 0xf8, 0x3e, 0x08, 0xeb, - 0x76, 0xe8, 0x59, 0x76, 0xe8, 0x0d, 0x42, 0x46, 0x39, 0x45, 0x75, 0xc7, 0xf6, 0x9d, 0x91, 0xf7, - 0xf3, 0x20, 0x22, 0xec, 0x27, 0xc2, 0xcc, 0xdd, 0x09, 0xa5, 0x13, 0x9f, 0x58, 0xc2, 0x2a, 0x08, - 0x28, 0xb7, 0xb9, 0x47, 0x83, 0x48, 0x5a, 0x9b, 0x8f, 0x27, 0x1e, 0x9f, 0xc6, 0xa3, 0x81, 0x43, - 0x67, 0xd6, 0x84, 0x4e, 0xa8, 0x25, 0xc4, 0xa3, 0x78, 0x2c, 0x6e, 0xe2, 0x22, 0x4e, 0xd2, 0x1c, - 0xaf, 0x40, 0xed, 0x7b, 0xea, 0xb9, 0x78, 0x0d, 0xe0, 0x1b, 0x46, 0xce, 0x5f, 0xc6, 0x3c, 0x8c, - 0x39, 0xc6, 0xb0, 0xf6, 0x9c, 0x5d, 0x84, 0x9c, 0x46, 0x27, 0x41, 0x18, 0x73, 0x84, 0xa0, 0x36, - 0x66, 0x74, 0xd6, 0x31, 0xfa, 0xc6, 0xe1, 0xea, 0x50, 0x9c, 0xf1, 0x1e, 0xac, 0x2b, 0x1b, 0xe9, - 0x84, 0xea, 0xb0, 0xcc, 0xa9, 0x32, 0x59, 0xe6, 0x14, 0xef, 0x43, 0xe3, 0x75, 0x78, 0x41, 0x8f, - 0x03, 0xea, 0xb8, 0xe4, 0x24, 0x8c, 0x83, 0xc5, 0x38, 0x18, 0x36, 0x32, 0xb3, 0x97, 0x71, 0xc8, - 0x17, 0x40, 0xb5, 0x61, 0xfb, 0x99, 0x3d, 0x8d, 0x46, 0xd4, 0x66, 0xee, 0xd0, 0x0e, 0x5c, 0x3a, - 0x53, 0x81, 0x1e, 0x41, 0xe3, 0xbb, 0x78, 0x36, 0x22, 0xcc, 0x0b, 0xc6, 0x54, 0xc6, 0xda, 0x82, - 0x95, 0x40, 0x88, 0x94, 0xbf, 0xba, 0x61, 0x04, 0x1b, 0x99, 0xa9, 0x72, 0x7f, 0x04, 0xf5, 0x17, - 0xd4, 0x7b, 0x67, 0x7b, 0x33, 0xa2, 0x1e, 0xd1, 0x84, 0x4f, 0xce, 0xbc, 0xf1, 0x38, 0xea, 0x18, - 0xfd, 0x3b, 0x87, 0xab, 0x43, 0x79, 0xc1, 0x7d, 0x80, 0x37, 0x94, 0xbb, 0xca, 0x06, 0x41, 0xed, - 0x9c, 0x32, 0x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0xc9, 0x01, 0xed, 0x0e, 0x8a, 0x2d, 0x37, 0xc8, - 0x37, 0x83, 0xf9, 0x59, 0x85, 0x56, 0x3d, 0x64, 0xef, 0x97, 0x3f, 0xff, 0xf9, 0x7d, 0xb9, 0x8b, - 0x9b, 0xa2, 0x41, 0xcf, 0xa4, 0xce, 0x22, 0x12, 0xfa, 0x89, 0xf1, 0x79, 0x8e, 0xef, 0x19, 0xf9, - 0x18, 0x7c, 0x21, 0x40, 0xd6, 0x60, 0x68, 0x4f, 0x47, 0xd3, 0x7a, 0xd4, 0xec, 0x57, 0x1b, 0xc8, - 0xee, 0xd4, 0x18, 0xa3, 0xac, 0x9e, 0x2c, 0xdb, 0xf7, 0x13, 0xc6, 0x63, 0xa8, 0xbd, 0xf2, 0x82, - 0x09, 0x6a, 0xea, 0x50, 0xc9, 0xa8, 0x31, 0x17, 0x4a, 0xf1, 0xa6, 0x00, 0xbd, 0x87, 0x56, 0x05, - 0x68, 0x98, 0xb8, 0xbf, 0x85, 0xd5, 0x79, 0x69, 0x57, 0x60, 0x95, 0x5e, 0xa3, 0xf7, 0x42, 0x4b, - 0xc0, 0x6e, 0xa0, 0xba, 0x80, 0x75, 0xe7, 0x70, 0xcf, 0xa1, 0x96, 0xcc, 0xbb, 0x0a, 0x58, 0x53, - 0x97, 0xe6, 0x66, 0x63, 0x31, 0x50, 0x27, 0x01, 0xf9, 0x11, 0x20, 0x1b, 0x2d, 0xe5, 0x0c, 0x6b, - 0x13, 0xaa, 0x9c, 0xe1, 0xd2, 0x5c, 0xea, 0x0b, 0x0e, 0x13, 0x75, 0x04, 0x47, 0x30, 0x57, 0x5b, - 0x97, 0xf2, 0x7c, 0x85, 0x28, 0x40, 0x36, 0x0a, 0xca, 0x94, 0xda, 0x34, 0x29, 0x53, 0x96, 0xe6, - 0x48, 0x4f, 0x50, 0x76, 0x50, 0x4b, 0x50, 0xb2, 0xb9, 0xda, 0xba, 0x4c, 0x46, 0xcf, 0x15, 0x7a, - 0x03, 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0x3e, 0x2b, 0x52, 0xf2, 0xa8, 0x3a, 0x88, 0xc2, 0xda, - 0x2d, 0x76, 0x77, 0x2e, 0x04, 0x2e, 0xd1, 0x7f, 0x35, 0xa0, 0xa1, 0xb9, 0xa2, 0x87, 0xb7, 0x60, - 0xcb, 0x34, 0xec, 0xdf, 0x62, 0x95, 0xfe, 0xa8, 0x89, 0x00, 0x1e, 0xa0, 0xfb, 0x8b, 0x03, 0xb0, - 0x2e, 0xd3, 0x45, 0x7d, 0xf5, 0xf5, 0xe0, 0x8f, 0xeb, 0x9e, 0xf1, 0xe1, 0xba, 0x67, 0xfc, 0x7d, - 0xdd, 0x33, 0x7e, 0xbb, 0xe9, 0x2d, 0x7d, 0xb8, 0xe9, 0x2d, 0xfd, 0x75, 0xd3, 0x5b, 0x7a, 0xdb, - 0x8c, 0x7d, 0xce, 0xc8, 0x60, 0x46, 0x2c, 0xc5, 0x99, 0x80, 0x8d, 0x56, 0xc4, 0x9f, 0xec, 0x57, - 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x74, 0x3e, 0x33, 0x37, 0x0b, 0x00, 0x00, +func init() { proto.RegisterFile("api/api.proto", fileDescriptor_api_0c0ca6419dfaf57b) } + +var fileDescriptor_api_0c0ca6419dfaf57b = []byte{ + // 995 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcb, 0x6e, 0xdb, 0x46, + 0x17, 0xb6, 0x1c, 0xfd, 0xfe, 0xe3, 0x13, 0x5b, 0xb2, 0xc7, 0xb2, 0x2e, 0xb4, 0x2b, 0x2b, 0x93, + 0x38, 0xb6, 0x0b, 0x44, 0x44, 0xdb, 0x5d, 0x76, 0x69, 0xe3, 0x85, 0x91, 0xa6, 0x31, 0xe4, 0xa0, + 0x01, 0xb2, 0x29, 0x28, 0x72, 0x44, 0x31, 0xa6, 0x38, 0x2c, 0x39, 0xac, 0xe1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, 0x53, 0x71, 0x72, 0xb0, 0xf1, + 0x8a, 0xf8, 0xcb, 0xfd, 0xe2, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x6e, 0x41, 0x1f, 0x53, + 0x0b, 0x00, 0x00, } diff --git a/api/api.pb.gw.go b/api/api.pb.gw.go index a13da502..4eb37092 100644 --- a/api/api.pb.gw.go +++ b/api/api.pb.gw.go @@ -678,7 +678,7 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli var ( pattern_Server_KryptosEncrypt_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "kryptos", "encrypt"}, "")) - pattern_Server_KryptosDecrypt_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "kryptos", "encrypt"}, "")) + pattern_Server_KryptosDecrypt_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "kryptos", "decrypt"}, "")) pattern_Server_TpyoEnocde_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "spreadshirt", "all"}, "")) diff --git a/api/api.proto b/api/api.proto index 4cd0b080..2933dfe1 100644 --- a/api/api.proto +++ b/api/api.proto @@ -20,7 +20,7 @@ service Server { }; rpc KryptosDecrypt(KryptosInput) returns (KryptosOutput) { option (google.api.http) = { - post: "/api/kryptos/encrypt" + post: "/api/kryptos/decrypt" body: "*" }; }; @@ -30,7 +30,7 @@ service Server { body: "*" }; } - rpc Ping(Void) returns (Void) { option (google.api.http) = { get: "/api/ping" }; }; + rpc Ping(Void) returns (Pong) { option (google.api.http) = { get: "/api/ping" }; }; rpc Dashboard(Void) returns (DashboardOutput) { option (google.api.http) = {get: "/api/dashboard"}; } rpc Crew(Void) returns (CrewOutput) { option (google.api.http) = {get: "/api/crew"}; } rpc Numberinfo(NumberinfoInput) returns (NumberinfoOutput) { option (google.api.http) = {get: "/api/numberinfo/{number}"}; } @@ -57,6 +57,7 @@ service Server { message Void {} +message Pong { string pong = 1; } message CrewOutput { /* TODO */ } message KryptosInput { string from = 1; } message KryptosOutput { string to = 1; } diff --git a/go.mod b/go.mod index f31d4927..ab5c1643 100644 --- a/go.mod +++ b/go.mod @@ -25,4 +25,5 @@ require ( golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a // indirect google.golang.org/genproto v0.0.0-20190108161440-ae2f86662275 google.golang.org/grpc v1.17.0 + ultre.me/kryptos v0.0.0-20181023194748-240fe1a16033 ) diff --git a/go.sum b/go.sum index 191a3e2e..13abb8ac 100644 --- a/go.sum +++ b/go.sum @@ -68,3 +68,5 @@ google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9M google.golang.org/grpc v1.17.0 h1:TRJYBgMclJvGYn2rIMjj+h9KtMt5r1Ij7ODVRIZkwhk= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +ultre.me/kryptos v0.0.0-20181023194748-240fe1a16033 h1:t1sY4eMB9q2+ZmzxjxHagtz1iZPRGnVNyKrpMXX3XaU= +ultre.me/kryptos v0.0.0-20181023194748-240fe1a16033/go.mod h1:NueMpFJdxVrRfBPrlVYEfjJhNj6ozlBz1RXYRhsWUak= diff --git a/svc/svc.go b/svc/svc.go index 97b77c20..7cfd9d9b 100644 --- a/svc/svc.go +++ b/svc/svc.go @@ -5,6 +5,7 @@ import ( "fmt" "ultre.me/calcbiz/api" + "ultre.me/kryptos" ) type Options struct { @@ -20,95 +21,84 @@ func New(opts Options) (api.ServerServer, error) { return &svc{opts: opts}, nil } -func (svc *svc) KryptosEncrypt(context.Context, *api.KryptosInput) (*api.KryptosOutput, error) { - return nil, fmt.Errorf("not implemented") +func (svc *svc) Ping(_ context.Context, input *api.Void) (*api.Pong, error) { + return &api.Pong{Pong: "pong"}, nil } -func (svc *svc) KryptosDecrypt(context.Context, *api.KryptosInput) (*api.KryptosOutput, error) { - return nil, fmt.Errorf("not implemented") +func (svc *svc) KryptosEncrypt(_ context.Context, input *api.KryptosInput) (*api.KryptosOutput, error) { + return &api.KryptosOutput{ + To: kryptos.Encrypt(input.From), + }, nil } -func (svc *svc) TpyoEnocde(context.Context, *api.TpyoEnocdeIpunt) (*api.TpyoEnocdeOuptut, error) { - return nil, fmt.Errorf("not implemented") +func (svc *svc) KryptosDecrypt(_ context.Context, input *api.KryptosInput) (*api.KryptosOutput, error) { + return &api.KryptosOutput{ + To: kryptos.Decrypt(input.From), + }, nil } -func (svc *svc) Ping(context.Context, *api.Void) (*api.Void, error) { +func (svc *svc) TpyoEnocde(_ context.Context, input *api.TpyoEnocdeIpunt) (*api.TpyoEnocdeOuptut, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) Dashboard(context.Context, *api.Void) (*api.DashboardOutput, error) { +func (svc *svc) Dashboard(_ context.Context, input *api.Void) (*api.DashboardOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) Crew(context.Context, *api.Void) (*api.CrewOutput, error) { +func (svc *svc) Crew(_ context.Context, input *api.Void) (*api.CrewOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) Numberinfo(context.Context, *api.NumberinfoInput) (*api.NumberinfoOutput, error) { +func (svc *svc) Numberinfo(_ context.Context, input *api.NumberinfoInput) (*api.NumberinfoOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) Recettator(context.Context, *api.RecettatorInput) (*api.RecettatorOutput, error) { +func (svc *svc) Recettator(_ context.Context, input *api.RecettatorInput) (*api.RecettatorOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) Moijaime(context.Context, *api.Void) (*api.MoijaimeOutput, error) { +func (svc *svc) Moijaime(_ context.Context, input *api.Void) (*api.MoijaimeOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) SpreadshirtRandom(context.Context, *api.Void) (*api.SpreadshirtRandomOutput, error) { +func (svc *svc) SpreadshirtRandom(_ context.Context, input *api.Void) (*api.SpreadshirtRandomOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) SpreadshirtAll(context.Context, *api.Void) (*api.SpreadshirtAllOutput, error) { +func (svc *svc) SpreadshirtAll(_ context.Context, input *api.Void) (*api.SpreadshirtAllOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) Wotd(context.Context, *api.Void) (*api.WotdOutput, error) { +func (svc *svc) Wotd(_ context.Context, input *api.Void) (*api.WotdOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) AlternateLogo(context.Context, *api.Void) (*api.AlternateLogoOutput, error) { +func (svc *svc) AlternateLogo(_ context.Context, input *api.Void) (*api.AlternateLogoOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) SoundcloudMe(context.Context, *api.Void) (*api.SoundcloudMeOutput, error) { +func (svc *svc) SoundcloudMe(_ context.Context, input *api.Void) (*api.SoundcloudMeOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) SoundcloudPlaylists(context.Context, *api.Void) (*api.SoundcloudPlaylistsOutput, error) { +func (svc *svc) SoundcloudPlaylists(_ context.Context, input *api.Void) (*api.SoundcloudPlaylistsOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) SoundcloudPlaylist(context.Context, *api.SoundcloudPlaylistInput) (*api.SoundcloudPlaylistOutput, error) { +func (svc *svc) SoundcloudPlaylist(_ context.Context, input *api.SoundcloudPlaylistInput) (*api.SoundcloudPlaylistOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) SoundcloudTracks(context.Context, *api.Void) (*api.SoundcloudTracksOutput, error) { +func (svc *svc) SoundcloudTracks(_ context.Context, input *api.Void) (*api.SoundcloudTracksOutput, error) { return nil, fmt.Errorf("not implemented") } -func (svc *svc) SoundcloudTrack(context.Context, *api.SoundcloudTrackInput) (*api.SoundcloudTrackOutput, error) { +func (svc *svc) SoundcloudTrack(_ context.Context, input *api.SoundcloudTrackInput) (*api.SoundcloudTrackOutput, error) { return nil, fmt.Errorf("not implemented") } /* r.Route("/api", func(r chi.Router) { - r.Use(render.SetContentType(render.ContentTypeJSON)) - - // ping - pong := func(w http.ResponseWriter, r *http.Request) { - w.Write([]byte(`{"result":"pong"}`)) - } - r.Get("/ping", pong) - r.Post("/ping", pong) - r.Options("/ping", pong) - r.Trace("/ping", pong) - r.Connect("/ping", pong) - r.Head("/ping", pong) - r.Put("/ping", pong) - r.Patch("/ping", pong) - r.Delete("/ping", pong) soundcloud := calcsoundcloud.New(c.String("soundcloud-client-id"), uint64(c.Int("soundcloud-user-id"))) dashboard := calcdashboard.New() @@ -199,35 +189,6 @@ func (svc *svc) SoundcloudTrack(context.Context, *api.SoundcloudTrackInput) (*ap }) }) - // kryptos - r.Post("/kryptos/encrypt", func(w http.ResponseWriter, r *http.Request) { - var data struct { - Message string - } - if err := c.BindJSON(&data); err == nil { - c.JSON(http.StatusOK, gin.H{ - "result": kryptos.Encrypt(data.Message), - }) - } else { - c.JSON(http.StatusNotFound, gin.H{ - "error": fmt.Sprintf("Invalid input: %v", err), - }) - } - }) - r.Post("/kryptos/decrypt", func(w http.ResponseWriter, r *http.Request) { - var data struct { - Message string - } - if err := c.BindJSON(&data); err == nil { - c.JSON(http.StatusOK, gin.H{ - "result": kryptos.Decrypt(data.Message), - }) - } else { - c.JSON(http.StatusNotFound, gin.H{ - "error": fmt.Sprintf("Invalid input: %v", err), - }) - } - }) // tpyo r.Post("/tpyo/enocde", func(w http.ResponseWriter, r *http.Request) {