sign

package module
v0.0.0-...-8d7338f Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func HMACWithSHA1

func HMACWithSHA1(vals Values, key string) string

func HMACWithSHA256

func HMACWithSHA256(vals Values, key string) string

func MD5

func MD5(vals Values, key string) string

func ProtoHMACWithSHA1

func ProtoHMACWithSHA1(msg proto.Message, key string) string

func ProtoHMACWithSHA256

func ProtoHMACWithSHA256(msg proto.Message, key string) string

func ProtoMD5

func ProtoMD5(msg proto.Message, key string) string

func ProtoSHA1

func ProtoSHA1(msg proto.Message, key string) string

func ProtoSHA256

func ProtoSHA256(msg proto.Message, key string) string

func SHA1

func SHA1(vals Values, key string) string

func SHA256

func SHA256(vals Values, key string) string

Types

type Bar

type Bar struct {
	X2 string `protobuf:"bytes,2,opt,name=x2,proto3" json:"x2,omitempty"`
	X3 int32  `protobuf:"varint,3,opt,name=x3,proto3" json:"x3,omitempty"`
	// contains filtered or unexported fields
}

func (*Bar) Descriptor deprecated

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

Deprecated: Use Bar.ProtoReflect.Descriptor instead.

func (*Bar) GetX2

func (x *Bar) GetX2() string

func (*Bar) GetX3

func (x *Bar) GetX3() int32

func (*Bar) ProtoMessage

func (*Bar) ProtoMessage()

func (*Bar) ProtoReflect

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

func (*Bar) Reset

func (x *Bar) Reset()

func (*Bar) String

func (x *Bar) String() string

type Foo

type Foo struct {
	X1    []string          `protobuf:"bytes,1,rep,name=x1,proto3" json:"x1,omitempty"`
	X2    string            `protobuf:"bytes,2,opt,name=x2,proto3" json:"x2,omitempty"`
	X3    int32             `protobuf:"varint,3,opt,name=x3,proto3" json:"x3,omitempty"`
	X4    map[string]string `` /* 145-byte string literal not displayed */
	X5Xyz string            `protobuf:"bytes,5,opt,name=x5_xyz,json=x5Xyz,proto3" json:"x5_xyz,omitempty"`
	// contains filtered or unexported fields
}

func (*Foo) Descriptor deprecated

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

Deprecated: Use Foo.ProtoReflect.Descriptor instead.

func (*Foo) GetX1

func (x *Foo) GetX1() []string

func (*Foo) GetX2

func (x *Foo) GetX2() string

func (*Foo) GetX3

func (x *Foo) GetX3() int32

func (*Foo) GetX4

func (x *Foo) GetX4() map[string]string

func (*Foo) GetX5Xyz

func (x *Foo) GetX5Xyz() string

func (*Foo) ProtoMessage

func (*Foo) ProtoMessage()

func (*Foo) ProtoReflect

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

func (*Foo) Reset

func (x *Foo) Reset()

func (*Foo) String

func (x *Foo) String() string

type KV

type KV struct{ K, V string }

type Values

type Values []KV

func ProtoToValues

func ProtoToValues(msg proto.Message) (vals Values)

{a: { b: "a.b", c: { d: "a.c.d" } }, e: "e"} a.b=xxx&a.c.d=xxx&e=xxx

func ProtoToValues2

func ProtoToValues2(msg proto.Message) (vals Values)

via protojson

Jump to

Keyboard shortcuts

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